in reply to Re: Empowered by Perl
in thread Empowered by Perl
tye recommended something like this, some time ago.my @contents = do { open(my $fh, "/my/text/file") or die; <$fh> };
His also supports concatenation of multiple files, just add them in the parentheses.my @contents = do { local *ARGV; @ARGV=('/my/text/file'); <> };
--
[ e d @ h a l l e y . c c ]
|
|---|