|
|
| more useful options | |
| PerlMonks |
Re^2: Using 'Shift' in subroutine argumentby GrandFather (Cardinal) |
| on Nov 02, 2007 at 18:43 UTC ( #648710=note: print w/ replies, xml ) | Need Help?? |
|
The shift without an argument defaults to @_. except in main scope (outside a sub) where shift operates on @ARGV by default. Consider:
Prints:
Perl is environmentally friendly - it saves trees
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||