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:


πŸ‘‘ 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