[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl-AnyPerl] wwwboard.htm and sub routines



Hi,

I am using Matt's wwwboard script (scriptarchive.com) and I would 
like to create a different sub return_html routine with the script.

Instead of printing out each line of HTML code - which is how the 
original script is done - I did this:

print "Content-type: text/html\n\n";
print <<"HTML code";

and then placed all of my HTML code for the reponse page here

HTML code
}

However by doing it this way I am unable to process part of Matt's 
sub routine which is:

if ($message_url) {
print "Link: $message_url_title
\n";
}
if ($message_img) {
print "Image:
\n";
}

With my method the HTML actual prints out the perl code onto the 
page. I would rather not code every line of HTML because the page is 
rather long - does anybody
know how I can include the above conditionals and still use

print <<"HTML code";

I'm going to run into the same problem with the sub rest_of_form 
routine. Any suggestions would be greatly appreciated.

You can check out my script here: 
http://home.mindspring.com/~lexmesa/stest/wwwboard.pl.txt

Any suggestions would be greatly appreciated.

best,

Tim

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-anyperl-request@macperl.org