getopt in perl
##bash中的实现方法
bash当然也有getopt,利用bash的vim模块能快速调用出usage
和 getopts
function。
##perl中的方法
perl有pm来实现,一般可使用Getopt::Long
和Getopt::Std
来实现。
##examples 例子
这里通过Getopt::Std
简单实现getopts,但未包括usage,后续再写。
##bash中的实现方法
bash当然也有getopt,利用bash的vim模块能快速调用出usage
和 getopts
function。
##perl中的方法
perl有pm来实现,一般可使用Getopt::Long
和Getopt::Std
来实现。
##examples 例子
这里通过Getopt::Std
简单实现getopts,但未包括usage,后续再写。