僕のかんがえた最強の Getopt::Long の使い方
- http://www.songmu.jp/riji/archives/2013/02/2013getoptlong.html
- http://d.hatena.ne.jp/tagomoris/20120918/1347991165
my $p = Getopt::Long::Parser->new(
config => [qw(posix_default no_ignore_case auto_help)]
);
$p->getoptions(
'version!' => \$version,
);
オプションのこまかいところはsongmuさんとtagomorisさんの記事をみてもらうとして、なにがいいたいかというと、Getopt::Long は OO インターフェイスがあるので、OOインターフェイスをつかった方がゆとり教育をうけている世代のみなさんにも理解しやすいとおもいます。
Published: 2013-04-03(Wed) 03:54