in reply to Get options query

From Getopt::Long:

use Getopt::Long; GetOptions( 'ip=s' => \my $ip, ); print $ip;
Note, pass your parameter like one of the following:
perl yourscript.pl --ip=192.168.0.1 perl yourscript.pl --ip 192.168.0.1