http://www.perlmonks.org?node_id=11129854


in reply to Unable to find my mistake

I find it impossible to find a mistake since I have no idea what output you were expecting. But anyway: Running the command through the debugger is usually quite useful in such cases:

perl -d abc.pl pqr.txt