in reply to Re: safe and $self
in thread safe and $self
I finally signed up for an account (instead of just lurking), so I'm the anonymous monk that posted this node.
the code I have is:
$test is the test object, and that gives the same error, it is declared with my $test = ..., but outside of any subs. neither work, both produce eval errors.sub codewrapper { my $self = shift; $self->{code}->share('$self'); $self->{code}->share('$test'); $code=$_[0]; $self->{code}->reval($code); $test->{code}->reval($code); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: safe and $self
by djantzen (Priest) on Nov 27, 2002 at 02:09 UTC | |
Re^3: safe and $self
by tadman (Prior) on Nov 27, 2002 at 05:57 UTC | |
by feanor_269 (Beadle) on Nov 27, 2002 at 17:52 UTC |
In Section
Seekers of Perl Wisdom