use Config;
-use base qw/B::Deparse/;
+use base qw<B::Deparse>;
=head1 NAME
$body = $self->SUPER::pp_gv(@_);
} else {
$body = do {
- local @{$self}{qw/brd_sub brd_cur/} = (0, $self->{brd_cur} + 1);
+ local @{$self}{qw<brd_sub brd_cur>} = (0, $self->{brd_cur} + 1);
local $seen->{$name} = 1;
'sub ' . $self->indent($self->deparse_sub($gv->CV));
};
use strict;
use warnings;
-use lib qw{blib/lib};
+use lib qw<blib/lib>;
use B::RecDeparse;
my $deparser = B::RecDeparse->new(deparse => [ '-sCi0v1' ], level => 1);
require B::RecDeparse;
-for (qw/new init pp_gv pp_entersub pp_const coderef2text/) {
+for (qw<new init pp_gv pp_entersub pp_const coderef2text>) {
ok(B::RecDeparse->can($_), 'BRD can ' . $_);
}
is(ref $brd3, 'B::RecDeparse', 'BRD::new called as a functions returns a B::RecDeparse object');
ok($brd3->isa('B::Deparse'), 'BRD is a BD');
-eval { $brd2 = new B::RecDeparse qw/a b c/ };
+eval { $brd2 = new B::RecDeparse qw<a b c> };
like($@, qr/Optional\s+arguments/, 'BRD::new gets parameters as key => value pairs');
my $br_args = '-sCi0v1';
my $brd = B::RecDeparse->new(deparse => [ $br_args ], level => -1);
-which $brd, [ ], [ qw/add mul fma/ ], -1;
+which $brd, [ ], [ qw<add mul fma> ], -1;
$brd = B::RecDeparse->new(deparse => [ $br_args ], level => 0);
-which $brd, [ qw/fma/ ], [ qw/add mul/ ], 0;
+which $brd, [ qw<fma> ], [ qw<add mul> ], 0;
$brd = B::RecDeparse->new(deparse => [ $br_args ], level => 1);
-which $brd, [ qw/add mul/ ], [ qw/fma/ ], 1;
+which $brd, [ qw<add mul> ], [ qw<fma> ], 1;
$brd = B::RecDeparse->new(deparse => [ $br_args ], level => 2);
-which $brd, [ ], [ qw/add mul fma/ ], 2;
+which $brd, [ ], [ qw<add mul fma> ], 2;
$brd = B::RecDeparse->new(deparse => [ $br_args ], level => 3);
-which $brd, [ ], [ qw/add mul fma/ ], 2;
+which $brd, [ ], [ qw<add mul fma> ], 2;
sub fakegv { return @_ }
eval { $brd->coderef2text(sub { return fakegv() }) };
my $br_args = '-sCi0v1';
my $brd = B::RecDeparse->new(deparse => [ $br_args ], level => -1);
-which $brd, [ ], [ qw/add mul fma/ ], -1;
+which $brd, [ ], [ qw<add mul fma> ], -1;
$brd = B::RecDeparse->new(deparse => [ $br_args ], level => 0);
-which $brd, [ qw/fma/ ], [ qw/add mul/ ], 0;
+which $brd, [ qw<fma> ], [ qw<add mul> ], 0;
$brd = B::RecDeparse->new(deparse => [ $br_args ], level => 1);
-which $brd, [ qw/add mul/ ], [ qw/fma/ ], 1;
+which $brd, [ qw<add mul> ], [ qw<fma> ], 1;
$brd = B::RecDeparse->new(deparse => [ $br_args ], level => 2);
-which $brd, [ ], [ qw/add mul fma/ ], 2;
+which $brd, [ ], [ qw<add mul fma> ], 2;
$brd = B::RecDeparse->new(deparse => [ $br_args ], level => 3);
-which $brd, [ ], [ qw/add mul fma/ ], 2;
+which $brd, [ ], [ qw<add mul fma> ], 2;
my $br_args = '-sCi0v1';
my $brd = B::RecDeparse->new(deparse => $br_args, level => -1);
-which $brd, \&foo, [ ], [ qw/add dummy/ ], [ qw/add call/ ], [ ], -1;
-which $brd, \&bar, [ ], [ qw/add call/ ], [ qw/add call/ ], [ ], -1;
+which $brd, \&foo, [ ], [ qw<add dummy> ], [ qw<add call> ], [ ], -1;
+which $brd, \&bar, [ ], [ qw<add call> ], [ qw<add call> ], [ ], -1;
$brd = B::RecDeparse->new(deparse => $br_args, level => 0);
-which $brd, \&foo, [ qw/call/ ], [ qw/add/ ], [ qw/add/ ], [ qw/dummy/ ], 0;
-which $brd, \&bar, [ ], [ qw/add call/ ], [ qw/add/ ], [ qw/dummy/ ], 0;
+which $brd, \&foo, [ qw<call> ], [ qw<add> ], [ qw<add> ], [ qw<dummy> ], 0;
+which $brd, \&bar, [ ], [ qw<add call> ], [ qw<add> ], [ qw<dummy> ], 0;
$brd = B::RecDeparse->new(deparse => $br_args, level => 1);
-which $brd, \&foo, [ ], [ qw/add dummy/ ], [ qw/add call/ ], [ ], 1;
-which $brd, \&bar, [ ], [ qw/add call/ ], [ qw/add call/ ], [ ], 1;
+which $brd, \&foo, [ ], [ qw<add dummy> ], [ qw<add call> ], [ ], 1;
+which $brd, \&bar, [ ], [ qw<add call> ], [ qw<add call> ], [ ], 1;
$brd = B::RecDeparse->new(deparse => $br_args, level => 2);
-which $brd, \&foo, [ ], [ qw/add dummy/ ], [ qw/add call/ ], [ ], 2;
-which $brd, \&bar, [ ], [ qw/add call/ ], [ qw/add call/ ], [ ], 2;
+which $brd, \&foo, [ ], [ qw<add dummy> ], [ qw<add call> ], [ ], 2;
+which $brd, \&bar, [ ], [ qw<add call> ], [ qw<add call> ], [ ], 2;
my $br_args = '-sCi0v1';
my $brd = B::RecDeparse->new(deparse => [ $br_args ], level => -1);
-which $brd, [ ], [ qw/Hlagh::add mul Dongs::fma/ ], -1;
+which $brd, [ ], [ qw<Hlagh::add mul Dongs::fma> ], -1;
$brd = B::RecDeparse->new(deparse => [ $br_args ], level => 0);
-which $brd, [ qw/fma/ ], [ qw/Hlagh::add mul/ ], 0;
+which $brd, [ qw<fma> ], [ qw<Hlagh::add mul> ], 0;
$brd = B::RecDeparse->new(deparse => [ $br_args ], level => 1);
-which $brd, [ qw/add mul/ ], [ qw/Dongs::fma/ ], 1;
+which $brd, [ qw<add mul> ], [ qw<Dongs::fma> ], 1;
$brd = B::RecDeparse->new(deparse => [ $br_args ], level => 2);
-which $brd, [ ], [ qw/Hlagh::add mul Dongs::fma/ ], 2;
+which $brd, [ ], [ qw<Hlagh::add mul Dongs::fma> ], 2;
$brd = B::RecDeparse->new(deparse => [ $br_args ], level => 3);
-which $brd, [ ], [ qw/Hlagh::add mul Dongs::fma/ ], 2;
+which $brd, [ ], [ qw<Hlagh::add mul Dongs::fma> ], 2;