add ability to do discard sends and make things basically work
[scpubgit/Object-Remote.git] / lib / Object / Remote / Proxy.pm
index a3e2a80..8541056 100644 (file)
@@ -5,7 +5,7 @@ use strictures 1;
 sub AUTOLOAD {
   my $self = shift;
   (my $method) = (our $AUTOLOAD =~ /([^:]+)$/);
-  $self->{remote}->call($method => @_);
+  $self->{remote}->${\$self->{method}}($method => @_);
 }
 
 sub DESTROY { }