in reply to Re: reference to self function
in thread reference to self function
and creating a new function bar that looks like:sub correlation { my($self, @args) = @_; print "self is $self, there are @args args\n"; }
When we do:sub bar { my $self = shift; $self->{funcs}{$self->{method}}(); }
the output is errors about uninitialized values, and self is , there are argsmy $x = new Foo; $x->bar;
dan
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: reference to self function
by sgifford (Prior) on Jun 25, 2003 at 07:12 UTC | |
by anjiro (Beadle) on Jun 25, 2003 at 07:23 UTC |