わいえむねっと

Contents
Categories
Calendar
2010/06
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
Monthly Archives
~2000/01
Recent Entries
RSS1.0
Templates
Information
Processed: 0.016 sec
Chashed: -
2010/06/13 Sun
GD::Barcode の環境を整えないとなーと思いつつ、なんの気なしに

$ perl -MGD::Barcode -e ''

と打ったらエラーを吐かずに終了したので、あれーと思いつつ

$ perl -MGD::Barcode -e 'open(OUT, q/>foo.png/);binmode OUT;print OUT GD::Barcode->new(q/EAN13/,q/4903110021322/)->plot->png'

と打ったら


環境整ってた。いつの間に。

まぁそれならそれでいいかーと思いつつ

$ cat barcode.txt|perl -MGD::Barcode -pe 'chomp;open STDOUT,qq/>$_.png/;binmode STDOUT;$_=GD::Barcode->new(q/EAN13/,$_)->plot->png'

一括生成。