in reply to PERL REST API Post script
I am trying to use arguments to pass information from the command line into a perl script. These are the IP, Email, the User and the password. The IP works but the rest does not get parsed into the req for the content. If I hardcode these the script works.
Use either Data::Dumper with $Data::Dumper::Useqq=1; or Data::Dump to inspect the variables you're getting from the command line, and check that they are as you expect. (Also, it looks like you're generating JSON by pasting a string together, I'd very much recommend one of the JSON modules instead, such as Cpanel::JSON::XS.)
|
|---|