in reply to Re: Why "use of uninitialized value" warning comes?
in thread Why "use of uninitialized value" warning comes?
What if an element of @need was the nul string ("")? If you want to check if you've reached the end of the array, check if you've reached the end of the array.
last if $incr == @need;
|
---|
In Section
Seekers of Perl Wisdom