more useful options | |
PerlMonks |
Re^3: Help with arraysby Rohit Jain (Sexton) |
on Sep 22, 2012 at 05:55 UTC ( [id://995049]=note: print w/replies, xml ) | Need Help?? |
You can use shift operator in this case.. shift operator takes an array, removes an element from the start and updates the existing array If your array becomes empty, it returns undef, which you can handle
In Section
Seekers of Perl Wisdom
|
|