more useful options | |
PerlMonks |
Re: Re: Re: Quick question about pattern matching uppercase lettersby Anomynous Monk (Scribe) |
on Apr 27, 2004 at 17:06 UTC ( [id://348576]=note: print w/replies, xml ) | Need Help?? |
//m changes the meaning of ^ and $ and there aren't any of those there, so it isn't needed. //m doesn't do anything else. And using \1 on the right side of a subst isn't actually a backreference and doesn't make anything harder to debug, it's just deprecated syntax.
The use of \1 is a sign that the poster forgot to enable warnings, though.
In Section
Seekers of Perl Wisdom
|
|