http://qs321.pair.com?node_id=11112745


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:
use Getopt::Long; my ( $phoneip, $user, $Address, $passcode, ); GetOptions( 'phoneip=s' => \$phoneip, 'user=s' => \$user, 'Address=s' => \$Address, 'passcode=s' => \$passcode, );
You would then call it with the arguments in any order, and you can easily add options:
perl script.pl --user username --phoneip 201.34.56.78