Try it! What does it return?
If it's not what you want, another approach might be to call the chomp on the result of the assignment:
chomp( my $str = <STDIN> );
Hope this helps!
In reply to Re^3: Idiomatic Perl?
by 1nickt
in thread Idiomatic Perl?
by thenextfart
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |