Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Very very small style question

by merlyn (Sage)
on Dec 18, 2000 at 01:08 UTC ( #47146=note: print w/ replies, xml ) Need Help??


in reply to Very very small style question

Or as another alternative:

sub method { my $self = shift; my $i = shift; my $old = $self->{B}[$i]; $self->{B}[$i] = shift if @_; $old; }
I tend to hate magic numbers. What if you decide later that there should be another parameter between $self and $i?

-- Randal L. Schwartz, Perl hacker


Comment on Re: Very very small style question
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://47146]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2014-12-21 22:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (108 votes), past polls