shift is a perl operator which may be applied to any variable with the @ sigil. It strips the array's first position and returns that value. In a sub definition, it is used on @_ which is formed from the argument list.
After Compline,
Zaxo
In reply to Re: shift operator
by Zaxo
in thread shift operator
by molly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |