InterviewSolution
| 1. |
How Shift Command Is Used? |
|
Answer» The FIRST value of an array shifted using shift array function and it is RETURNED, which RESULTS in array shortening by one element and moves everything from a place to left. If an array is not SPECIFIED to shift, shift uses @ ARGV, the command LINE arguments of an array is passed to script or to an array named @. The first value of an array shifted using shift array function and it is returned, which results in array shortening by one element and moves everything from a place to left. If an array is not specified to shift, shift uses @ ARGV, the command line arguments of an array is passed to script or to an array named @. |
|