in reply to OOP Question - location of $self
But this is kind of goofy. It's clearer to write it out the correct way, so that you and others maintaining your code in the future don't ask themselves what in the hell you were doing:sub method { my ($self, $arg) = @_; # do stuff with $self perhaps other(@_); # equiv. to $self->other($arg) }
Does this help at all?$self->other($arg);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: OOP Question - location of $self
by dws (Chancellor) on Apr 16, 2001 at 22:01 UTC | |
by tye (Sage) on Apr 16, 2001 at 22:09 UTC |