例子,使用perl生成纯html二维码,需要依次安装 qrencode、text-qrcode、html-qrcode。
 
#!/usr/bin/perl
use html::qrcode;
my $text = 'http://jb200.com/';
my $qrcode = html::qrcode->new->plot($text);
print <<"html";
<html>
  <head></head>
  <body>
  $qrcode
  </body>
</html>
html
 
以上生成的二维码是纯html代码。