No such thing as a small change | |
PerlMonks |
Re: nooby question about @+, @-by toolic (Bishop) |
on Oct 27, 2014 at 16:54 UTC ( [id://1105180]=note: print w/replies, xml ) | Need Help?? |
Tip #1 from the Basic debugging checklist: warnings
I believe /./g; is evaluated in scalar context, and only one match is done, not 7. (/./g); is also evaluated in scalar context, and picks up at the position of the previous match.
In Section
Seekers of Perl Wisdom
|
|