in reply to (ar0n) Re: Filehandles and Arraysin thread Filehandles and Arrays
my @array = do { local *ARGV; @ARGV = "foo.txt"; <> }; [download]
-- Randal L. Schwartz, Perl hacker