in reply to Error while compiling LWP code

It's the square brackets.
my $res = $ua->request(POST $url, [Content_Type =>'form-data', Content => '', Location => 'MM02', Tickettype => '5120', CoreDirCorrect => 1, PhoneNumber => '12335656787', CustomerImpact => 3, 800014118 => 0, Severity => 'HIGH', InitialDescription => 'Test Request', f=>'severalty', tmpl=>'severalty', SUBMIT1 => 'Submit Ticket Request']);
Update: On second thought, maybe it isn't the brackets afterall. This seems to work fine for me as well:
Content_Type =>'form-data', Content => [ Location => 'MM02' ...
That'll teach me not to read the whole perldoc. For clarification...your error is happening in the Perl script, right?

Celebrate Intellectual Diversity

Replies are listed 'Best First'.
Re^2: Error while compiling LWP code
by mraja_23 (Initiate) on Mar 15, 2006 at 20:33 UTC
    Not sure. Error could be while submitting data also.