在 Perl 中使用 Getopt::Long 模块来接收用户命令行参数

转自 http://www.php-oa.com/2009/04/04/perl_getopt-long.html 

写在前面,支持长参和短参,较为简单好用。 optionname  可以是字母,数字和 dash(-),不允许连续的dash,和dash结尾。

更详细见:http://search.cpan.org/~jv/Getopt-Long-2.38/lib/Getopt/Long.pm


posted @ 2012-11-29 17:45  程序员杰诺斯  阅读(144)  评论(0编辑  收藏  举报