Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Re: Any difference in conditionals?by kelan (Deacon) |
on Apr 27, 2004 at 16:51 UTC ( [id://348569]=note: print w/replies, xml ) | Need Help?? |
Your tests aren't equivalent. In method 1, both variables start out as 1. In method 2, both variables start undefined. If you start with the same state in both tests, the results will be identical, both for the 'start as 1' case and the 'start undefined' case.
In Section
Seekers of Perl Wisdom
|
|