![]() |
|
|
+ Search |
![]()
|
Sep 21st, 2003 10:30
Simon B, Per M Knutsen,
Clear $/ to allow the entire file to be read straight into your
variable:
$file = "include.dat";
my $string;
{
undef $/; # read file all at once
open (FILE, $file) || die "cannot open $file: $!";
$string = <FILE>;
close FILE;
}