in reply to Re: Putting file contents into a scalar
in thread Putting file contents into a scalar
You can specify a filehandle as:
my $fh;The root nodes problem is that he/she tried FILE and then $FILE, which does not work.
*FILE != $FILEI prefer to use the $ convention, as opposed to the bareword. I think it keeps my code cleaner, as I don't feel the need to double-check for any other "barewords" that might not be what I was expecting.
Just my two cents...
John J Reiser
newrisedesigns.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^2: (nrd) Putting file contents into a scalar
by joe++ (Friar) on Oct 29, 2002 at 13:47 UTC | |
by merlyn (Sage) on Oct 29, 2002 at 14:35 UTC | |
by Felonious (Chaplain) on Oct 29, 2002 at 14:44 UTC | |
by merlyn (Sage) on Oct 29, 2002 at 14:47 UTC | |
by rir (Vicar) on Oct 29, 2002 at 19:23 UTC | |
|