use strict; use warnings; use Data::Dump 'dd'; $_ = 'a'; dd s/(?=(a))/b/; dd @-; dd $_; $_ = 'a'; dd s/(?=(a))/b/g; dd @-; dd $_; [download]
Is this a bug?
1 (0, 0) "ba" 1 0 "ba" [download]
In reply to Global match and capture group in look-ahead == under-populated "@-"? by Anonymous Monk