XP is just a number | |
PerlMonks |
Re^2: Does eval cause that much of a performance hit?by BrowserUk (Patriarch) |
on May 06, 2009 at 08:50 UTC ( [id://762189]=note: print w/replies, xml ) | Need Help?? |
What are the alternatives:
Or
Of course, if you're setting $foo, then presumably your gonna use it at some point later. And unless your enamoured with testing every variable for undef prior to using it, then in most cases there is a sensible default that it can be initialised to. In which case:
Of course, that can be done "long hand" also if that's you preference. And that's the point. Using this particular flaw in the Perl semantics as a justifiction for a style preference is disingenuous. Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|