Removes the first element from @array and returns it.
@array - the array to "shift" a value from.
The scalar removed from the specified array.
@queue = @("bottom", "middle", "top"); $bottom = shift(@queue); println($bottom); println("Queue is: " . @queue);
bottom Queue is: @('middle', 'top')