Perl: the Markov chain saw | |
PerlMonks |
Re^3: perlfunc index name conflictby AnomalousMonk (Archbishop) |
on Sep 24, 2012 at 08:30 UTC ( [id://995310]=note: print w/replies, xml ) | Need Help?? |
In scalar context such as supplied by index, a successfully matching regex will return 1, which will be stringized to '1' for the substring for which to search:
An unsuccessful regex match returns the empty string in scalar context.
In Section
Seekers of Perl Wisdom
|
|