ByteOrNybble has asked for the wisdom of the Perl Monks concerning the following question:
But this doesnt work. Any ideas? Thanks!open ($FILE, $txt_file) || die "Cannot open $txt_file:$!"; $contents=join('',<FILE>);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Putting file contents into a scalar
by joe++ (Friar) on Oct 29, 2002 at 12:35 UTC | |
by newrisedesigns (Curate) on Oct 29, 2002 at 12:51 UTC | |
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 | |
| |
|
Re: Putting file contents into a scalar
by vek (Prior) on Oct 29, 2002 at 13:37 UTC | |
|
Re: Putting file contents into a scalar
by Aristotle (Chancellor) on Oct 29, 2002 at 20:14 UTC | |
|
Re: Putting file contents into a scalar
by Tanalis (Curate) on Oct 29, 2002 at 12:38 UTC |