![]() |
|
"be consistent" | |
PerlMonks |
Re: typo? variable misteriously becoming undefby John M. Dlugosz (Monsignor) |
on Nov 14, 2002 at 20:04 UTC ( #212994=note: print w/replies, xml ) | Need Help?? |
1) don't do eq undef. That's nonesence. You cannot compare something directly against undef (so I've read somewhere around here) but should only test it directly. 2) Your shift @la gets rid of the OH and moves everything else down one. I don't see a $la[1] anywhere, so guess what? I don't see why it's not already gone at the first print.
In Section
Seekers of Perl Wisdom
|
|