|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: Silly code reviews and shiftby Anonymous Monk |
| on Feb 04, 2002 at 22:32 UTC ( [id://143344]=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.
I too very often use shift. I always shift of the first argument in methods. I'm sure you understand why, but I'll say why anyway. It's because I want them to be more like regular subroutine calls, where I can do nice checks on scalar(@_). And, having
certainly makes a good visual aid for me. I often even prefer to do over my ($self, $this, $that) = @_; -Anomo
In Section
Meditations
|
|
||||||||||||||||||||||||