in reply to using s/ to not only substitute but also modify text

A word of warning, though. I did this at work and, one day when I was away, there was a production problem (not caused by my code, might I add), and I was called while driving in Washington DC during rush hour. (This is not something that I recommend to anyone.) So, if others without much Perl experience will have to help support it, I recommend comments at the very least.

--
tbone1, YAPS (Yet Another Perl Schlub)
And remember, if he succeeds, so what.
- Chick McGee

  • Comment on Re: using s/ to not only substitute but also modify text

Replies are listed 'Best First'.
Re^2: using s/ to not only substitute but also modify text
by waswas-fng (Curate) on Jul 26, 2004 at 17:21 UTC
    tobne1, ack. I would hope it is pretty self documenting when you use the paren form sub call. If the person you have looking at your code has more than a passing "huh?" when looking at that, you may want to find someone whom knows perl a little bit better. =)


    -Waswas