in reply to Re^3: Parsing multiple lines based on a given String
in thread Parsing multiple lines based on a given String
with -open my $fh, '<', \$file or die "unable to open read file $!";
and it doesn't give an output or any error. Any clue? --------------------------------------------------------------- oh, never mind... had to use chomp. chomp($line);my $filename = 'file.txt'; open(my $fh, '<:encoding(UTF-8)', $filename) or die "Could not open file '$filename' $!";
|
|---|