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:
sub codewrapper { my $self = shift; $self->{code}->share('$self'); $self->{code}->share('$test'); $code=$_[0]; $self->{code}->reval($code); $test->{code}->reval($code); }
$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.