in reply to Putting file contents into a scalar
This will do the trick:
Update:my $contents; { local $/; open (FILE, $txt_file) || die "Cannot open $txt_file:$!"; $contents = <FILE> }
--
Cheers, Joe
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: (nrd) Putting file contents into a scalar
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 | |
by merlyn (Sage) on Oct 29, 2002 at 14:47 UTC | |
|