in reply to Counting using transliteration
The next line is automagically assigned to $_, so you don't need $line=<MYFILE> which then grabs the second (..,forth, sixth..) line.. However, if you want to count every char, you should use one of the ways demerphq and jmcnamara showed above, and not tr///..while(<FH>){ #The next line is in $_ }
|
|---|