laziness, impatience, and hubris | |
PerlMonks |
Re^4: Using undef scalar as arrayrefby shemp (Deacon) |
on Aug 12, 2005 at 21:07 UTC ( [id://483414]=note: print w/replies, xml ) | Need Help?? |
Actually the if is separate from the loop. If there are any elements in the arrayref a flag needs to be set for later that is separate from what is happening in the loop. So its something like this:
Of course i could set it in the loop, but then its being set multiple times. I use the most powerful debugger available: print!
In Section
Seekers of Perl Wisdom
|
|