Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use warnings; use Data::Dump 'dd'; $_ = 'a'; dd s/(?=(a))/b/; dd @-; dd $_; $_ = 'a'; dd s/(?=(a))/b/g; dd @-; dd $_;
Is this a bug?
1 (0, 0) "ba" 1 0 "ba"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Global match and capture group in look-ahead == under-populated "@-"?
by haukex (Archbishop) on Nov 19, 2022 at 13:20 UTC | |
by LanX (Sage) on Nov 19, 2022 at 15:29 UTC | |
by Anonymous Monk on Nov 20, 2022 at 10:08 UTC | |
by Anonymous Monk on Nov 20, 2022 at 10:19 UTC | |
Re: Global match and capture group in look-ahead == under-populated "@-"? (updated)
by LanX (Sage) on Nov 19, 2022 at 14:19 UTC | |
Re: Global match and capture group in look-ahead == under-populated "@-"?
by Anonymous Monk on Nov 19, 2022 at 12:34 UTC |
Back to
Seekers of Perl Wisdom