in reply to Re: Printing contents of file on a HTML page.
in thread Printing contents of file on a HTML page.
(print, like many Perl functions defaults to using the variable $_ if no other arguments are given. The loop stores each line of the file in $_ if it is not asigned to any other variable)while (<FIL>) { print; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Printing contents of file on a HTML page.
by dreadpiratepeter (Priest) on Sep 23, 2002 at 16:15 UTC | |
|
Re: Re: Re: Printing contents of file on a HTML page.
by Bilbo (Pilgrim) on Sep 23, 2002 at 16:05 UTC | |
by Anonymous Monk on Sep 23, 2002 at 17:54 UTC | |
by fglock (Vicar) on Sep 23, 2002 at 18:02 UTC | |
by BUU (Prior) on Sep 23, 2002 at 23:44 UTC |