princepawn has asked for the wisdom of the Perl Monks concerning the following question:
my ($self, $file) = ($_[0], $_[1] ? $_[0]->{file} = $_[1] : $_[0]->{file} ) ;
If a file argument is passed in, then the new value for $self->{file} is this new argument. Otherwise, set file to the value of $self->{file} already bound. We are guaranteed to always have a value here because the object constructor requires it.
|
|---|