X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FRoute.pm;h=03dd1f43776a4ceba321740f1c5247a89f036532;hb=069147b7c204d14e826af2478765be15b72ac96d;hp=0676139aa033647f434bc557a6c6a4cdfc179c82;hpb=2841b340579dae85808c5a571df3140b736c2fb2;p=spider.git diff --git a/perl/Route.pm b/perl/Route.pm index 0676139a..03dd1f43 100644 --- a/perl/Route.pm +++ b/perl/Route.pm @@ -60,7 +60,9 @@ $filterdef = bless ([ sub new { - my ($pkg, $call) = @_; + my $pkg = shift; + my $call = shift; + $pkg = ref $pkg if ref $pkg; my $self = bless {call => $call}, $pkg;