Don't ask to ask, just ask | |
PerlMonks |
Re^2: search position is getting reset after 'local'by Fletch (Bishop) |
on Jun 12, 2006 at 18:42 UTC ( [id://554873]=note: print w/replies, xml ) | Need Help?? |
Not an actual usage, but I could easily see something which did a match, called a sub which localized $_, and then tried to use pos() after that sub returned. Granted it'd be kinda sloppy code (like depending on $1 and friends to remain set rather than saving values off if you need to use them), but again I could see it happening.
In Section
Seekers of Perl Wisdom
|
|