Last active
February 6, 2025 09:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/perl | |
use strict; | |
use warnings; | |
use Imager::QRCode; | |
my $url = shift || 'https://perlhacks.com/'; | |
my $qrcode = Imager::QRCode->new; | |
my $img = $qrcode->plot($url); | |
$img->write(file => 'qrcode.png') | |
or die 'Failed to write: ' . $img->errstr; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And here's the QR Code it makes