X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FObject%2FRemote%2FProxy.pm;h=3c46eeb704a3ae16dfb885d2e1d2e1ed57c116dc;hb=d672a9bff87112bf8cfea0a5749e934d4c8c996e;hp=a3e2a805b70feac24c15dddfc2b8a680d8ab2fcf;hpb=9d804009b5363c739598a9cc4507df57a2d59c55;p=scpubgit%2FObject-Remote.git diff --git a/lib/Object/Remote/Proxy.pm b/lib/Object/Remote/Proxy.pm index a3e2a80..3c46eeb 100644 --- a/lib/Object/Remote/Proxy.pm +++ b/lib/Object/Remote/Proxy.pm @@ -5,7 +5,11 @@ use strictures 1; sub AUTOLOAD { my $self = shift; (my $method) = (our $AUTOLOAD =~ /([^:]+)$/); - $self->{remote}->call($method => @_); + my $to_fire = $self->{method}; + if ((caller(0)||'') eq 'start') { + $to_fire = "start::${to_fire}"; + } + $self->{remote}->$to_fire($method => @_); } sub DESTROY { }