in reply to Evil Interview Questions
$self->foo(); foo($self);
I'd say that the main difference is where the perl interpreter searches for foo: in the first case it searches in $selfs package, in the second it searches in the current package.
Naming the variable $self suggests that they are identical, but that could be another of your evil tricks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Evil Interview Questions
by Jenda (Abbot) on Feb 08, 2008 at 23:47 UTC | |
|
Re^2: Evil Interview Questions
by kyle (Abbot) on Feb 09, 2008 at 04:15 UTC |