open (FILE, 'htmlcal.txt'); print "Content-Type: text/html\n\n"; print "What the f***?"; print <FILE>; close FILE;
The 'What the f***?' prints out nicely but the contents of the file don't show. I've tried replacing print <FILE>;
with
my @contents = <FILE>; print "@contents";
but to no effect. I'm not getting any errors so what am I doing wrong here?
In reply to Printing file to browser by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |