|
|
| P is for Practical | |
| PerlMonks |
Re: What does the SHIFT bit do in a constructorby jorg (Friar) |
| on May 25, 2001 at 13:03 UTC ( [id://83285]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Leaving all this class constructor stuff alone : if you use shift without an array as argument it will shift from @_ (which is the array of arguments passed to a sub) when called in a sub or from @ARGV (which is the array of arguments passed to the perl program) when called from the main program body. Thus :
Jorg "Do or do not, there is no try" -- Yoda
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||