open my $fh,"+<four_comma.txt" or die "Cannot open text $!"; my $i=0; while(<$fh>){ say $_; say ++$i; }
Solution
Got it! Had to change my EOL Conversion on notepad++ to Unix, it was set to DOS / Windows. Thank you.
In reply to loop by line on a file by sage.erosenin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |