in reply to Get options query
From Getopt::Long:
use Getopt::Long; GetOptions( 'ip=s' => \my $ip, ); print $ip; [download]
perl yourscript.pl --ip=192.168.0.1 perl yourscript.pl --ip 192.168.0.1 [download]