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 reply to Re: Very very small style question
by merlyn
in thread Very very small style question
by Dominus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |