use strict; use warnings; my @servers; open (my $file, '<', $ARGV[0]) or die $!; while(<$file>){ push (@servers, $_); #push each line of the file to array } print "$_\n" for(@servers);
In reply to Re: How do I get different files into an array
by james28909
in thread How do I get different files into an array
by amagana
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |