junjie 通过本文主要向大家介绍了perl html,perl语言编程实例,perl实例精解,perl脚本实例,perl实例等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
需要依次安装 qrencode、Text-QRCode、HTML-QRCode
#!/usr/bin/perl
use HTML::QRCode;
my $text = 'http://jb51.net/';
my $qrcode = HTML::QRCode->new->plot($text);
print <<"HTML";
<html>
<head></head>
<body>
$qrcode
</body>
</html>
HTML
生成的二维码是纯HTML代码,效果如:

