in reply to Re: how to post an xml using REST::Client
in thread how to post an xml using REST::Client
This will attempt to interpolate the string since it is in double quotes. If you really have a file called @sample.xml (which seems like an unfortunate choice of filename), you should quote it with single quotes so Perl doesn't try to replace @sample with the contents of a non-existent array.my %fields = ( deliverable_file => "@sample.xml",
Other errors with this code:
$ perl -c 1159843.pl Possible unintended interpolation of @sample in string at 1159843.pl l +ine 11. Global symbol "@sample" requires explicit package name at 1159843.pl l +ine 11. Global symbol "$host" requires explicit package name at 1159843.pl lin +e 21. Bareword "tags" not allowed while "strict subs" in use at 1159843.pl l +ine 10. 1159843.pl had compilation errors.
Hope this helps!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how to post an xml using REST::Client
by KSHYAMKUMAR (Acolyte) on Apr 08, 2016 at 20:15 UTC | |
by 1nickt (Canon) on Apr 08, 2016 at 20:46 UTC |