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


in reply to loop by line on a file

Works fine for me. Can you show your input file? For the following input, I get the following output:

INPUT:

a b c d e

OUTPUT:

a 1 b 2 c 3 d 4 e 5