From Getopt::Long:
Note, pass your parameter like one of the following:use Getopt::Long; GetOptions( 'ip=s' => \my $ip, ); print $ip;
perl yourscript.pl --ip=192.168.0.1 perl yourscript.pl --ip 192.168.0.1
In reply to Re: Get options query
by wind
in thread Get options query
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |