Hi,
Most of the pages I use has to do with subs. I have a page like this:
if ($mode eq "view"
{
&header(qq~
#somehtml
~,"Page Title"
;
exit;
}
but i want to add some perl code inside the (#somehtml) part. Like the "EOF" function. Any idea how do i do this?
Here's an example of what i'm talking about if i didn't used 'subroutines'.
print <<EOF;
#somehtml
EOF
#perl code
print <<EOF;
#continue html
EOF
I want to do the code like above but how do I add that to the header() subroutine? Thanks again for your time.
-Aaron
Most of the pages I use has to do with subs. I have a page like this:
if ($mode eq "view"

&header(qq~
#somehtml
~,"Page Title"

exit;
}
but i want to add some perl code inside the (#somehtml) part. Like the "EOF" function. Any idea how do i do this?
Here's an example of what i'm talking about if i didn't used 'subroutines'.
print <<EOF;
#somehtml
EOF
#perl code
print <<EOF;
#continue html
EOF
I want to do the code like above but how do I add that to the header() subroutine? Thanks again for your time.
-Aaron