in reply to Re^3: looking for a good idiom: return this if this is true
in thread looking for a good idiom: return this if this is true
if (thatroutine()) {return $_}$_ isn't getting set there. Are you expecting the variable to be psychic?
No, I'm not expecting that. I tested this with a one-liner prior to posting, I swear. Problem is, I just tried re-entering that one-liner prior to posting my proof here and.... It doesn't work. I suppose I must have screwed that up somehow, the first time around. I'm not entirely clear on how $_ works.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: looking for a good idiom: return this if this is true
by merlyn (Sage) on Mar 07, 2005 at 19:25 UTC |