Getopt ::Std模組支援單一switch字元,並設定名稱為$opt_x變數的值,其中x是選項所用的字母。 use Getopt::Std; getopt(ab); print "a is $opt_a\n" if defined $opt_a;
確定! 回上一頁