in reply to Remote web form post
Where do you define and fill $res?
That variable is never defined or filled and therefore is undefined.
Maybe you should consider to use strict and warnings.
Addendum:I had another look at your script and think, there are more flaws than the one I previously mentioned.
- $req should contain a HTTP::Request object; so you should create one.
- POST 'http://...' is missing the correct operator between POST and the URL string
- $ua->request() returns a response object; you should give the variable a better fitting name than $request.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Remote web form post
by Anonymous Monk on Aug 21, 2011 at 01:19 UTC | |
by linuxer (Curate) on Aug 21, 2011 at 09:59 UTC |
In Section
Seekers of Perl Wisdom