algebaric operations on a RegEx?
Madison Kelly
linux-5ZoueyuiTZhBDgjK7y7TUQ at public.gmane.org
Mon Apr 6 16:41:39 UTC 2009
Lennart Sorensen wrote:
> On Sun, Apr 05, 2009 at 12:03:24AM -0400, Madison Kelly wrote:
>> Richard Dice wrote:
>>> s/<size>(\d+)<\/size>/"<size>" . ($1+4) . "<\/size>"/e;
>> Grah! So 'e' was the magic... I stand humbled before the
>> match-stick-master. :D
>
> And that's why I am really starting to hate perl. :) The simpler it
> gets the less readable it is.
>
"hate perl"? Oh, IT'S ON!
:D
Perl's a language you love or you hate. It doesn't seem to have much
middle ground. I, personally, love it for it's flexibility. Though I
have to admit, it can get pretty cryptic in the hands of someone for
whom that is their intention. It enforces no "good behaviour", but
instead leaves it to the coder to give a damn or not.
Madi
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list