# 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.
In reply to Re: RPC.pm and using eval to make a dummy client stub
by bikeNomad
in thread RPC.pm and using eval to make a dummy client stub
by donaldm314
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |