- or download this
DB<1> $x = "a\n";
...
DB<3> print $x
1
- or download this
$ perl -E 'my $x = "a\n"; $x = chomp $x; say $x'
0
- or download this
$ perl -E 'my $x = "a\n"; my $y = chomp $x; say $y;'
1
- or download this
$x = chomp $x;
- or download this
$c = ++$c;