I have a file : #myfile.txt a b c d a c s g g o y g _END_ I wrote a perl script to put each line into a list; #/usr/bin/perl -w open (FH, "myfile.txt") ; while ($LINE = <FH>) { chomp $LINE; push @list, $LINE; } close FH; print $_ for (@list); _END_ I expect to get a b c da c s gg o y g instead I got a b c d a c s g g o y g why didn't chomp work??!! any insight is appreciated -Jennifer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
- Re: chomp & list Jennifer Pan
- Re: chomp & list Maxim Berlin