in reply to Re^4: how to change this code into perl
in thread how to change this code into perl

Did you try it with the sample you provided ?

1 twenty 2 thirty 1 forty 1 fifty

Update : Does your file have spaces at the beginning of the lines ?

poj

Replies are listed 'Best First'.
Re^6: how to change this code into perl
by perlnewbie012215 (Novice) on Aug 30, 2015 at 20:16 UTC

    It seems like some special characters and space, I delete those and its working perfectly now