http://www.perlmonks.org?node_id=65482


in reply to How do I read the files in @ARGV one by one

@ARGV = $_, push @data, $_, <> for @{[@ARGV]};
Hmm. There was some other clever trick to dup a list too, but I can't recall now.

-- Randal L. Schwartz, Perl hacker


update: Yeah, it's
@ARGV = $_, push @data, $_, <> for map $_, @ARGV;