in reply to Weirdness (duplicated data) while building result during parsing using regex
If you add an 'use Data::Dump' to your module and insert lines like
Maybe you can figure it out from there?
after your 'push' instructions, there is clearly a difference in behavior between your example cases.print "4 \$_: '$_'\n", "\$^N: ", dd( $^N ), "\$^R: ", dd( $^R );
Maybe you can figure it out from there?
In Section
Seekers of Perl Wisdom