X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=samples%2Fcx.pl;h=69bef742f77521688e7da9e8f88f232822022682;hb=fd35681c6f0a1e84d407dbe4fcc7a3c25e4d8851;hp=0b51a13399eb7c51e3ae63e22693cdf34d2fd44c;hpb=4b846088d0ffe4f979b145ec2af821922bd5c7af;p=perl%2Fmodules%2FSub-Nary.git diff --git a/samples/cx.pl b/samples/cx.pl index 0b51a13..69bef74 100755 --- a/samples/cx.pl +++ b/samples/cx.pl @@ -7,6 +7,7 @@ use lib qw{blib/lib blib/arch}; use B::Deparse; use B::Concise; use Sub::Nary; +$Sub::Nary::DEBUG = 1; my ($x, $y, @z, %h); @@ -42,7 +43,7 @@ sub wut2 { } elsif ($y) { sub { qr/wat/ }, %h; } elsif (@z) { - return [ ] + return [ ]; } } @@ -62,7 +63,7 @@ sub ifr { } my $code = \&wut; - +$code = sub { while (do { return 2, 3 }) { } }; my $bd = B::Deparse->new(); print STDERR $bd->coderef2text($code), "\n";