Help for this page
use strict; use warnings; ... GetOptions("foo=s"=>\$foo); print "The foo parameter is '$foo'\n";
$ perl foo.pl The foo parameter is 'default' ... $ perl foo.pl -foo=BARBAZ The foo parameter is 'BARBAZ' $