summaryrefslogtreecommitdiff
path: root/example/make-image.pl
diff options
context:
space:
mode:
Diffstat (limited to 'example/make-image.pl')
-rw-r--r--example/make-image.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/example/make-image.pl b/example/make-image.pl
index 659d6ef..9faff00 100644
--- a/example/make-image.pl
+++ b/example/make-image.pl
@@ -91,7 +91,8 @@ sub overlay_data_to_image {
my $string = 'simple test string, but a bit long just in case we get a too-small QR code';
my $data = Data::QRCode->new(
- $string,'H',
+ input_data => $string,
+ error_correction_level => 'H',
);
my $src_img = Imager->new(