X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FObject%2FRemote%2FConnector%2FLocal.pm;h=6119e3ff3f612decc69f190ed526b674617e7f4f;hb=f425c3cb155190f7113bda4ad91d831662a2ac7a;hp=bfe6639043bbd86285a2415ed1f8fb13e60b8ed9;hpb=7efea51f193cf42822232047403138ef98abcc32;p=scpubgit%2FObject-Remote.git diff --git a/lib/Object/Remote/Connector/Local.pm b/lib/Object/Remote/Connector/Local.pm index bfe6639..6119e3f 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->connect } + if (($_[0]||'') eq '-') { + shift(@_); + __PACKAGE__->new(@_); + } }; 1;