The stupid question is the question not asked | |
PerlMonks |
Refactoring: dumb or witty use of ternary operator?by PetaMem (Priest) |
on Jun 21, 2004 at 21:47 UTC ( [id://368559]=perlquestion: print w/replies, xml ) | Need Help?? |
PetaMem has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks, I'm refactoring code of a former colleague, who sometimes was brilliant implementing things, and sometimes - well... I stumbled across a module where he uses tons of these constructs: Standalone - not as right value of anything. Looking at the context (no context for the hash), I think the whole construct is equivalent to: Or am I overseeing some "important" side effect? Thanks for sharing your insight.
Bye
Back to
Seekers of Perl Wisdom
|
|