in reply to Re: Empowered by Perl
in thread Empowered by Perl

Doesn't seem pretty, but you don't have to deal with closing or colliding with the filehandle...
my @contents = do { open(my $fh, "/my/text/file") or die; <$fh> };
tye recommended something like this, some time ago.
my @contents = do { local *ARGV; @ARGV=('/my/text/file'); <> };
His also supports concatenation of multiple files, just add them in the parentheses.

--
[ e d @ h a l l e y . c c ]