in reply to How do I read the files in @ARGV one by one
foreach my $file (@ARGV) { if ( -e $file ) { # double check existence push @data, $file; open FILE , '<'.$file or die $!; while( <FILE> ) { push @data, $_; } close FILE; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How do I read the files in @ARGV one by one
by isotope (Deacon) on Mar 19, 2001 at 23:46 UTC |