vincentaxhe has asked for the wisdom of the Perl Monks concerning the following question:
test.pl as below;
run 'perl test.pl'; line 2 run or not, affect the rest. comment it and see for yourself.I use perl 5.38 in manjaro.my $a = "abc"; my @b = $a =~ /.(?!a)/g; #comment this line to see the output my $c = 'test'; $c =~ s///; print $c
ADD:
It's beyong all expectations.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: no way it's not a bug of Perl
by Corion (Patriarch) on Jul 14, 2024 at 10:26 UTC | |
by vincentaxhe (Beadle) on Jul 14, 2024 at 10:48 UTC | |
by NERDVANA (Curate) on Jul 14, 2024 at 10:57 UTC | |
by LanX (Saint) on Jul 14, 2024 at 22:55 UTC | |
by choroba (Cardinal) on Jul 14, 2024 at 23:06 UTC | |
by NERDVANA (Curate) on Jul 15, 2024 at 08:26 UTC | |
by vincentaxhe (Beadle) on Jul 14, 2024 at 11:37 UTC | |
by ikegami (Patriarch) on Jul 14, 2024 at 13:17 UTC | |
| |
Re: I thought I found a bug of Perl
by eyepopslikeamosquito (Archbishop) on Jul 14, 2024 at 11:05 UTC | |
by vincentaxhe (Beadle) on Jul 14, 2024 at 11:22 UTC | |
by eyepopslikeamosquito (Archbishop) on Jul 14, 2024 at 11:37 UTC | |
by jdporter (Paladin) on Jul 15, 2024 at 12:45 UTC |
Back to
Seekers of Perl Wisdom