Friday, 16 November 2012

How to use the command shift? | Perl Scripting Interiew Questions

Shift array function shifts off the first value of the array and returns it, thereby shortening the array by one element and moving everything from one place to the left. If you don’t specify an array to shift, shift uses @ ARGV, the array of command line arguments passed to the script or the array named @-.

No comments: