Copyright © tutorialspoint.com
Syntax
Definition and UsageReturns the first value in an array, deleting it and shifting the elements of the array list to the left by one. If ARRAY is not specified, shifts the @_ array within a subroutine, or @ARGV otherwise. shift is essentially identical to pop, except values are taken from the start of the array instead of the end. Return Value
ExampleTry out following example:
It will produces following result.
|
Copyright © tutorialspoint.com