]> git.vpit.fr Git - perl/modules/Sub-Nary.git/blobdiff - samples/cx.pl
Update VPIT::TestHelpers to 15e8aee3
[perl/modules/Sub-Nary.git] / samples / cx.pl
index 8717d395ea41154cf06f4d477138397d0cfdc975..3289c8dedce3708072a1428b4886764ce0424f6d 100755 (executable)
@@ -3,11 +3,19 @@
 use strict;
 use warnings;
 
-use lib qw{blib/lib blib/arch};
-use B::Deparse;
+use lib qw<blib/lib blib/arch>;
+
+my $bd;
+BEGIN {
+ if (eval "use B::RecDeparse; 1") {
+  $bd = B::RecDeparse->new;
+ } else {
+  use B::Deparse;
+  $bd = B::Deparse->new;
+ }
+}
 use B::Concise;
 use Sub::Nary;
-$Sub::Nary::DEBUG = 1;
 
 my ($x, $y, @z, %h);
 
@@ -64,7 +72,6 @@ sub ifr {
 
 my $code = \&wut;
 
-my $bd = B::Deparse->new();
 print STDERR $bd->coderef2text($code), "\n";
 
 B::Concise::walk_output(\*STDERR);