X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FSub-Nary.git;a=blobdiff_plain;f=lib%2FSub%2FNary.pm;h=1406d6695dbde7f89ce4e62c52177c039a34cef4;hp=7fe085855580aa53a478126802822797cf65a063;hb=429a59ef0920be32c4263b67fc0a32b542ae34be;hpb=b88f2c41d644a13f58e593d23bdf8525632a45f1 diff --git a/lib/Sub/Nary.pm b/lib/Sub/Nary.pm index 7fe0858..1406d66 100644 --- a/lib/Sub/Nary.pm +++ b/lib/Sub/Nary.pm @@ -343,11 +343,9 @@ sub pp_entersub { my ($self, $op) = @_; $op = $op->first while $op->flags & OPf_KIDS; - return undef, 0 if null $op; - if (name($op) eq 'pushmark') { - $op = $op->sibling; - return undef, 0 if null $op; - } + # First must be a pushmark + $op = $op->sibling; + # Next must be non null - at worse it's the rv2cv my $r; my $c = 1;