in reply to Very very small style question
Or as another alternative:
I tend to hate magic numbers. What if you decide later that there should be another parameter between $self and $i?sub method { my $self = shift; my $i = shift; my $old = $self->{B}[$i]; $self->{B}[$i] = shift if @_; $old; }
-- Randal L. Schwartz, Perl hacker
|
---|
In Section
Seekers of Perl Wisdom