1Text::QRCode(3) User Contributed Perl Documentation Text::QRCode(3)
2
3
4
6 Text::QRCode - Generate text base QR Code
7
9 use Text::QRCode;
10
11 my $arrayref = Text::QRCode->new()->plot("Some text here.");
12 print join "\n", map { join '', @$_ } @$arrayref;
13
14 # You will get following output.
15 ******* * ** *******
16 * * * * * *
17 * *** * * *** *
18 * *** * ** * *** *
19 * *** * * * * *** *
20 * * **** * *
21 ******* * * * *******
22 * **
23 ** ** * *** * *
24 * ** *** * *
25 * **** * * **
26 * * * * * * ** ***
27 ** * *** ** **
28 * ** * ** *
29 ******* ***** ***
30 * * * ** * ****
31 * *** * * * * *
32 * *** * * ** * *
33 * *** * *** * ***
34 * * ** * * ***
35 ******* * * ****
36
38 This module allows you to generate QR Code using ' ' and '*'. This
39 module use libqrencode '2.0.0' and above.
40
42 new
43 $qrcode = Text::QRCode->new(%params);
44
45 The new() constructor method instantiates a new Text::QRCode
46 object. new() accepts some parameters are the same as
47 "Imager::QRCode".
48
49 plot($text)
50 $arrayref = $qrcode->plot("blah blah");
51
52 Create a QR Code map. This method returns array reference ploted QR
53 Code with the given text.
54
56 plot_qrcode($text, \%params)
57 Instant method. $text is input text. %params is same parameter as
58 new().
59
61 "Imager::QRCode", "Term::QRCode", "HTML::QRCode",
62 "http://www.qrcode.com/",
63 "http://megaui.net/fukuchi/works/qrencode/index.en.html"
64
66 Yoshiki Kurihara "<kurihara __at__ cpan.org>"
67
69 Copyright (c) 2013, Yoshiki KURIHARA "<kurihara __at__ cpan.org>".
70
71 This program is free software; you can redistribute it and/or modify it
72 under the same terms as Perl itself.
73
74
75
76perl v5.38.0 2023-07-21 Text::QRCode(3)