On 2010-09-02 21:15, Chas. Owens wrote:
my $string = do { open my $fh, "<", "filename" or die $!; local $/; <$fh>; };
To make it use less memory, write it like this: my $string; { open my $fh, "<", "filename" or die $!; local $/; $string = <$fh>; }; -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/