MT#61459 Do not use Perl indirect object syntax

This syntax is discouraged, and it is not enabled by default any longer
starting with the 5.36 feature bundles. Stop using it so that we can
eventually bump our minimum required Perl version.

Fixes: Objects::ProhibitIndirectSyntax
Warned-by: perlcritic
Ref: https://metacpan.org/pod/feature#The-'indirect'-feature
Change-Id: Icfbf6c1e79ab1b2973ab41d05c664105b710b8c4
mr13.1.1
Guillem Jover 6 months ago
parent ae2d6e6ed2
commit 4371e41f00

@ -9,7 +9,7 @@ use YAML::XS;
use File::Temp qw/tempfile/;
my $inputfile = shift or die 'You did not specify an input file name';
my $outputfile = new File::Temp( UNLINK => 1 );
my $outputfile = File::Temp->new(UNLINK => 1);
my $yaml = YAML::XS::LoadFile($inputfile);

Loading…
Cancel
Save