in reply to How do I use strict with asub( a = 'b' ) syntax?
tomy $res = $ua->request(POST $url, content-type => 'form-data', content => $query, authorization => "Basic " . AUTHORISATION, );
Note the brackets around your request.my $res = $ua->request(POST $url, [ "content-type" => 'form-data', "content" => $query, "authorization" => "Basic " . AUTHORISATION ]);
|
|---|