- or download this
# Create a file array of lines
while ($line = <FILE>){
push (@array, $line);
}
- or download this
my @array = <FILE>;
- or download this
# Then control the output
foreach $index (@array){
...
print "$index";
}
}
- or download this
for (@array) {
print unless /^(\n|\s+)$/;
}