in reply to RPC.pm and using eval to make a dummy client stub
# assumes connection is first arg sub AUTOLOAD { (my $name = $AUTOLOAD) =~ s/.*:://; eval "sub $AUTOLOAD { shift()->rpc( '$name', \@_) }"; goto &$AUTOLOAD; }
update: removed debugging print statement, unnecessary variable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) 2Re: RPC.pm and using eval to make a dummy client stub
by jeffa (Bishop) on Jun 01, 2001 at 23:58 UTC |