X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FObject%2FRemote%2FConnector%2FLocal.pm;h=838bd5d16258dad64780842a6fb8555f27b30b9b;hb=466ee2c442ee6958e077a02c3c250245f06ad819;hp=729bcd785630ec9465504baad063a3d8576b2673;hpb=fbd3b8ecbd2c9004f0e56ff1c0bc30f677a19c62;p=scpubgit%2FObject-Remote.git diff --git a/lib/Object/Remote/Connector/Local.pm b/lib/Object/Remote/Connector/Local.pm index 729bcd7..838bd5d 100644 --- a/lib/Object/Remote/Connector/Local.pm +++ b/lib/Object/Remote/Connector/Local.pm @@ -6,8 +6,13 @@ with 'Object::Remote::Role::Connector::PerlInterpreter'; no warnings 'once'; +BEGIN { } + push @Object::Remote::Connection::Guess, sub { - if (($_[0]||'') eq '-') { __PACKAGE__->new } + if (($_[0]||'') eq '-') { + shift(@_); + __PACKAGE__->new(@_); + } }; 1;