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


in reply to Re: Putting files in an Array
in thread Putting files in an Array

It looks like there's no need to open the file here, because the filename is in the @ARGV. It is as if it comes from STDIN. In this case this works @lines=<>;