需要依次安裝 qrencode、Text-QRCode、HTML-QRCode
#!/usr/bin/perl
use HTML::QRCode;
my $text = 'http://VeVB.COm/';
my $qrcode = HTML::QRCode->new->plot($text);
print <<"HTML";
<html>
<head></head>
<body>
$qrcode
</body>
</html>
HTML
生成的二維碼是純HTML代碼,效果如:
|
新聞熱點
疑難解答