go ahead... be a heretic | |
PerlMonks |
Re: Re: a word of warning about /$pattern/by demerphq (Chancellor) |
on Dec 06, 2003 at 11:15 UTC ( [id://312756]=note: print w/replies, xml ) | Need Help?? |
This kind of thing keeps me humble, because I know that somewhere there is someone who understands exactly why this was a good idea Its still a good idea:
IOW, it means you can have several regexes try to match, and then without having to worry about which one did you can then replace the thing that was matched. I only recently came accross this feature, but sice I have its found its way into more code than I thought it would.
---
demerphq First they ignore you, then they laugh at you, then they fight you, then you win.
In Section
Meditations
|
|