On Sat, Nov 27, 2004 at 03:11:22PM +0000, Nicholas Clark wrote: > -in question (C<$_> is used when the variable is not specified). May be > -modified to change that offset. Such modification will also influence > -the C<\G> zero-width assertion in regular expressions. See L<perlre> and > +in question (C<$_> is used when the variable is not specified). Note that > +0 is a valid match offset, while C<undef> indicates that the search position > +is reset (usually due to match failure, but can also be because no match has > +yet been performed on the scalar). C<pos> directly accesses the location used > +by the regexp engine to store the offset, so assigning to C<pos> will change > +that offset, and so will also influence the C<\G> zero-width assertion in > +regular expressions. Because a failed C<m//gc> match doesn't reset the > offset, > +the return from C<pos> won't change either in this case. See L<perlre> and > L<perlop>.
Is there a way to work into that that setting pos() clears the minmatch flag?
