Text::QRCode(3pm)
Text::QRCode πβ¨
okay bestie, so likeβ¦ picture this: you want a QR code but you're living that pure-text terminal life, no images, no nonsense. Text::QRCode is literally the one. It's a Perl module that makes QR Codes out of ' ' (space) and '*' (star) characters. That's it, that's the whole vibe. Iconic. π
Oh and also? It runs on libqrencode '2.0.0' and above, so make sure you've got that, k? No cap. π
β¨ SYNOPSIS β¨
okay so here's you, in code, being effortlessly cool:
use Text::QRCode;
my $arrayref = Text::QRCode->new()->plot("Some text here.");
print join "\n", map { join '', @$_ } @$arrayref;
# You will get following output.
******* * ** *******
* * * * * *
* *** * * *** *
* *** * ** * *** *
* *** * * * * *** *
* * **** * *
******* * * * *******
* **
** ** * *** * *
* ** *** * *
* **** * * **
* * * * * * ** ***
** * *** ** **
* ** * ** *
******* ***** ***
* * * ** * ****
* *** * * * * *
* *** * * ** * *
* *** * *** * ***
* * ** * * ***
******* * * ****
likeβ¦ look at it. that's a QR code made of stars. we're literally living in the future fr fr. βπ
πΈ DESCRIPTION πΈ
So like, this module lets you generate a QR Code using ' ' and '*'. Yes. That's genuinely it. Text-based QR code, no image files required, we're being minimalist queens today. π
And just to be super clear: this module uses libqrencode '2.0.0' and above. That's not optional, bestie, that's the whole engine. ππ¨
π METHODS π
new
$qrcode = Text::QRCode->new(%params);
The new() constructor method instantiates a new Text::QRCode object. Main character moment.
And here's the tea: new() accepts some parameters that are the same as "Imager::QRCode". so if you already know that API, you already know this one. iykyk π«Ά
plot($text)
$arrayref = $qrcode->plot("blah blah");
Create a QR Code map. This method returns an array reference of the plotted QR Code, built from the text you give it. Feed it text, get back stars. π
π¦ INSTANT METHODS π¦
plot_qrcode($text, %params)
Instant method. So like, no object needed, we're going straight in. $text is your input text, and %params takes the same parameters as new(). quick, easy, slay. β¨
π₯ SEE ALSO π₯
go be nosy, bestie, these are all worth a peek:
"Imager::QRCode""Term::QRCode""HTML::QRCode""http://www.qrcode.com/""http://megaui.net/fukuchi/works/qrencode/index.en.html"
π AUTHOR π
Yoshiki Kurihara "<kurihara __at__ cpan.org>"
(ty for your service, legend π«‘)
π LICENCE π
Copyright (c) 2013, Yoshiki KURIHARA "<kurihara __at__ cpan.org>".
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. so likeβ¦ go wild, respectfully. π
tl;dr: text goes in, stars come out, QR code acquired. the way that this module just works? obsessed. no notes. π
and that's a wrap, bestie!! π this was perl v5.42.3, dated 2026-08-19, and it's the Text::QRCode(3pm) page β go forth and generate some starry lil QR codes, you absolute icon β¨π
π¦ where this page comes from
- ubuntu stonking: libtext-qrcode-perl 0.05-2build6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms