# and:chomp (my @lines=<STDIN>); my @due=sort @lines; print "@due\n";
The second one print a number. I think this number is the quantity of lines chomped (or the number of elements in array), but I don't understand why the two statments are different. Thank you!print sort chomp (my @lines=<STDIN>);
In reply to Unexpected chomp behavior by saintex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |