in reply to How do I read the files in @ARGV one by one
my @data = do { my @copy = @ARGV; local $/; map { shift @copy, map /(.*\n?)/g, $_ } <>; };
-- Randal L. Schwartz, Perl hacker
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How do I read the files in @ARGV one by one
by denishowe (Acolyte) on Oct 29, 2014 at 11:43 UTC |