in reply to choosing and/or overriding defaults for a sub argument
Though if you are setting ->{file}, do you really need $file?my ( $self, $file ) = ( $_[0], ( $_[0]->{file} = $_[1] || $_[0]->{file} ) );
my $self = shift; $self->{file} = shift || $self->{file}; # or... $file = $self->{file} = shift || $self->{file};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: choosing and/or overriding defaults for a sub argument
by mdillon (Priest) on May 22, 2001 at 00:45 UTC |