Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: shifting argumentsby ozone (Friar) |
on Aug 22, 2001 at 20:02 UTC ( [id://107008]=note: print w/replies, xml ) | Need Help?? |
from the perlfunc man page: "shift: Shifts the first value of the array off and returns it" shift only retrieves the first value from the array... so the other two would naturally be undef. you could do: or try something clever with 'splice'
In Section
Seekers of Perl Wisdom
|
|