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?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Weirdness (duplicated data) while building result during parsing using regex
by perlancar (Hermit) on Sep 02, 2016 at 10:09 UTC |
In Section
Seekers of Perl Wisdom