The stupid question is the question not asked | |
PerlMonks |
Re: Re: Re: Short Circuit Operator and Hash Assignmentby hardburn (Abbot) |
on Mar 17, 2004 at 17:33 UTC ( [id://337434]=note: print w/replies, xml ) | Need Help?? |
You're hitting an edge case. The optimization had a different situation in mind:
This optimization is hardly unique to Perl. I believe both C and Java compilers will optimize away constants in exactly the same way. ---- Note: All code is untested, unless otherwise stated
In Section
Seekers of Perl Wisdom
|
|