Home : General : Perl Programming :

General: Perl Programming: Re: [-=Stu=-] Possible to do print $outputType; where $outputType="<<EOF": Edit Log

Here is the list of edits for this post
Re: [-=Stu=-] Possible to do print $outputType; where $outputType="<<EOF"
Im not totally clear on what you want to do but is it something like ?:

Code:

output($outputType) if ($submit eq 'Preview');

sub output {
#--------------------------------------

my $type = shift;

print "Content-type: text/html\n\n";
print $type;
}

?

....if you are wanting to write to a file then you need to open/close one :)

Last edited by:

Paul: May 8, 2002, 4:42 AM

Edit Log: