Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
where mysub is subroutine name. Please explain what how arguments are being passed through shift itself. As far as I know shift is used to get the very first element of an array. But here I cant see any array. Are these 'shift's' taking value from command lines?? Pl help.mysub shift, shift;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using 'Shift' in subroutine argument
by merlyn (Sage) on Nov 02, 2007 at 10:49 UTC | |
by narainhere (Monk) on Nov 02, 2007 at 11:31 UTC | |
by shmem (Chancellor) on Nov 02, 2007 at 13:20 UTC | |
|
Re: Using 'Shift' in subroutine argument
by sen (Hermit) on Nov 02, 2007 at 10:54 UTC | |
by GrandFather (Saint) on Nov 02, 2007 at 18:43 UTC | |
|
Re: Using 'Shift' in subroutine argument
by FunkyMonk (Bishop) on Nov 03, 2007 at 01:38 UTC |