2013年1月23日水曜日

開発環境

『続・初めてのPerl 改訂版』(Randal L. Schwartz, brian d foy, Tom Phoenix 著、伊藤 直也田中 慎司吉川 英興 監訳、株式会社ロングテール/長尾 高弘 訳、オライリー・ジャパン、2006年、ISBN4-87311-305-9)の3章(モジュールの使い方), 3.10(練習問題)2を解いてみる。

その他参考書籍

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 コメント:

コメントを投稿