Skip to content

Commit 20aab9d

Browse files
committed
perl: Use ->new() syntax
1 parent 3d9fddf commit 20aab9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/bindings/perl/example.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
use strict;
44
use postscriptbarcode;
55

6-
my $bwipp1 = new postscriptbarcode::BWIPP("../../../build/monolithic_package/barcode.ps") || die 'Failed to load resource\n';
7-
my $bwipp2 = new postscriptbarcode::BWIPP("../../../build/monolithic/barcode.ps") || die 'Failed to load resource\n';
6+
my $bwipp1 = postscriptbarcode::BWIPP->new("../../../build/monolithic_package/barcode.ps") || die 'Failed to load resource\n';
7+
my $bwipp2 = postscriptbarcode::BWIPP->new("../../../build/monolithic/barcode.ps") || die 'Failed to load resource\n';
88

99
my $ver = $bwipp1->get_version() || die 'Failed to get version\n';
1010
print "Packaged version: $ver\n";

0 commit comments

Comments
 (0)