in reply to shift operator
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 Section
Seekers of Perl Wisdom