in reply to Re^2: Assigning the result of a chomp to the chomped var itself.
in thread Assigning the result of a chomp to the chomped var itself.
$ perl -MData::Dumper -e ' $g=$f=qq{a\n}; print Dumper( chomp( $f, $g + ) ) ; print Dumper( $f, $g )' $VAR1 = 2; $VAR1 = 'a'; $VAR2 = 'a'; $perl -MData::Dumper -e ' $g=$f=qq{a\n\n}; print Dumper( chomp( $f, $ +g ) ) ; print Dumper( $f, $g )' $VAR1 = 2; $VAR1 = 'a '; $VAR2 = 'a ';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Assigning the result of a chomp to the chomped var itself.
by Anonymous Monk on Nov 26, 2014 at 19:02 UTC | |
by Discipulus (Canon) on Nov 26, 2014 at 19:37 UTC |