in reply to PERL REST API Post script
Not an answer, but, when writing command line scripts I find using the core module Getopt::Long to parse options much more flexible (and easier to debug). For your script:
You would then call it with the arguments in any order, and you can easily add options:use Getopt::Long; my ( $phoneip, $user, $Address, $passcode, ); GetOptions( 'phoneip=s' => \$phoneip, 'user=s' => \$user, 'Address=s' => \$Address, 'passcode=s' => \$passcode, );
perl script.pl --user username --phoneip 201.34.56.78
|
---|
In Section
Seekers of Perl Wisdom