in reply to Re: search position is getting reset after 'local'
in thread search position is getting reset after 'local'
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.
|
---|