in reply to Re: looking for a good idiom: return this if this is true
in thread looking for a good idiom: return this if this is true

Sorry, no offense, but this looks really terrible to me... Why on earth do you want to fire up a regex matching here?

Probably this has also an interesting side effect: it could convert a "numeric" scalar into a "string" scalar. No good.

  • Comment on Re^2: looking for a good idiom: return this if this is true

Replies are listed 'Best First'.
Re^3: looking for a good idiom: return this if this is true
by jdporter (Paladin) on Mar 08, 2005 at 14:38 UTC
    I'm not saying it's good, but it does answer the OP, somewhat, and it's very short.
    ...it could convert a "numeric" scalar into a "string" scalar. No good.
    If you think such conversions are inherently bad, then Perl probably isn't the language for you.