in reply to Printing file to browser
Should do the trick. You have to print it on a line-by-line basis, which is what the while loop will do.open(FILE,"file.txt") || die; print while <FILE>; close FILE;
UPDATE: You all beat me to it, but mine took less space!! :)
Almost a Perl hacker.
Dave AKA damian
I encourage you to email me
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Printing file to browser
by arturo (Vicar) on Apr 03, 2001 at 00:01 UTC | |
by bbfu (Curate) on Apr 03, 2001 at 00:36 UTC |
In Section
Seekers of Perl Wisdom