Read a file and loop line by line
my $filename = 'filename.txt';
open (FP, '<', $filename) or die "Cannot open $filename: $!";
while(<FP>)
{
$line = $_;
}
close FP;
[Click to add or edit comments])
Please prepend comments below including a date