B
Bryan
Hi,
I have a filehandle, $file.
I can do something like this:
while (<$file>) {
print $_;
# or
$string .= $_;
}
But is there a way to stuff the whole file to a string in one shot? I
tried:
$string = <$file>;
But no dice.
Thanks,
B
I have a filehandle, $file.
I can do something like this:
while (<$file>) {
print $_;
# or
$string .= $_;
}
But is there a way to stuff the whole file to a string in one shot? I
tried:
$string = <$file>;
But no dice.
Thanks,
B