Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Re^3: a word of warning about /$pattern/by demerphq (Chancellor) |
on Dec 07, 2003 at 18:06 UTC ( [id://312951]=note: print w/replies, xml ) | Need Help?? |
Fair point. The example is not the best I've ever written. The point is that the empty regex behaviour is useful for allowing you to use m/.../ and then later s//.../ without having to match a second time. Maybe this is better
Hopefully now you see the point? Sure we could probably rework the logic so this isnt needed, but I like the possibilities this opens up. :-)
---
demerphq First they ignore you, then they laugh at you, then they fight you, then you win.
In Section
Meditations
|
|