![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
pos()atively mysterious.by BrowserUk (Patriarch) |
on Dec 16, 2002 at 10:27 UTC ( #220153=perlquestion: print w/replies, xml ) | Need Help?? |
BrowserUk has asked for the wisdom of the Perl Monks concerning the following question: According to perlop In scalar context, each execution of m//g finds the next match, returning true if it matches, and false if there is no further match. The position after the last match can be read or set using the pos() function; But the following snippet
produces
What am I doing wrong? Examine what is said, not who speaks.
Back to
Seekers of Perl Wisdom
|
|