Skip to content

Commit

Permalink
Deparse.t: Fix new indirect syntax
Browse files Browse the repository at this point in the history
In two places
  • Loading branch information
rwp0 authored and mauke committed Nov 24, 2023
1 parent b39dd14 commit 7496960
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/B/Deparse.t
Expand Up @@ -62,7 +62,7 @@ while (<DATA>) {
# parse options if necessary
my $deparse = $meta{options}
? $deparse{$meta{options}} ||=
new B::Deparse split /,/, $meta{options}
B::Deparse->new(split /,/, $meta{options})
: $deparse;

my $code = "$meta{context};\n" . <<'EOC' . "sub {$input\n}";
Expand Down Expand Up @@ -289,7 +289,7 @@ SKIP: {
# Clear out all hints
%^H = ();
$^H = 0;
new B::Deparse -> ambient_pragmas(strict => 'all');
B::Deparse->new->ambient_pragmas(strict => 'all');
}
use 5.011; # should enable strict
ok !eval '$do_noT_create_a_variable_with_this_name = 1',
Expand Down

0 comments on commit 7496960

Please sign in to comment.