開発環境
- OS X Lion - Apple(OS)
- BBEdit - Bare Bones Software, Inc.(Text Editor)
- Script言語:Perl
その他参考書籍
2.
コード(BBEdit)
sample.pl
#!/usr/bin/env perl5.14 use strict; use warnings; use utf8; use 5.014; binmode STDOUT, ':utf8'; binmode STDIN, ':utf8'; use Business::ISBN; my $isbn10 = Business::ISBN->new('4873113059'); print "group code: " . $isbn10->group_code . "\n"; print "publisher code: " . $isbn10->publisher_code . "\n";
入出力結果(Terminal)
$ ./sample.pl group code: 4 publisher code: 87311 $
0 コメント:
コメントを投稿