Don't ask to ask, just ask | |
PerlMonks |
Re^3: Re-use of a global matchby mrpeabody (Friar) |
on Aug 02, 2007 at 05:00 UTC ( [id://630214]=note: print w/replies, xml ) | Need Help?? |
/g can be useful. But if you just want to know if something matches (which for me is most of the time), you don't need it. The cases where m///g is useful are where:
In practice, I find myself using /g only in substitutions.
In Section
Seekers of Perl Wisdom
|
|