in reply to Re^2: Bizarreness in ?PATTERN? and g
in thread Bizarreness in ?PATTERN? and g

Because pos( $_ ) isn't being reset. Sort of like you had used /gc. I'm not sure if that constitutes a bug or not?


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail

Replies are listed 'Best First'.
Re^4: Bizarreness in ?PATTERN? and g
by ysth (Canon) on Jun 04, 2004 at 07:30 UTC
    Depends how you read
    except that it matches only once between calls to the reset() operator
    Does "matches" mean attempts to match only once (i.e. pos is completely unaffected when it no longer even try to match) or that later attempts to match will automatically fail (and pos is reset unless //c).

    Obviously the actual implementation agrees with the former interpretation. And my take is that it seems better that way.