fix problem fpr perl < 5.6
[spider.git] / perl / Thingy.pm
index 2483d2732705a8f566ae359ca86fd8a194d98167..61068e06b2f7e5df80cd4275b33627eca633edd6 100644 (file)
@@ -50,7 +50,7 @@ sub send
        } else {
                no strict 'refs';
                my $sub = "gen_$class";
-               push @out, $thing->$sub if $thing->can($sub);
+               push @out, $thing->$sub() if $thing->can($sub);
        }
        $chan->send(@out) if @out;
 }