test.plxFORM IDTI ONNN CHRT . .
Chomp seems to affect $_ such that whenever I try to concatenate something to right of $_ (eg $_ . "somestring") the result is the right string overwrites the first characters on the left. Concatenations to the left of $_ work.while (<STDIN>) { chomp; print STDERR $_ . " is the symbol\n"; } $ cat symbols.txt | ./test.plx is the symbol is the symbol is the symbol is the symbol . . while (<STDIN>) { #chomp; print STDERR $_ . " is the symbol\n"; } $ cat symbols.txt | ./test.plx FORM is the symbol IDTI is the symbol ONNN is the symbol CHRT is the symbol ADI . .
In reply to chomp problem by piranhas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |