Hi All

Platform: windows, AS Perl

I'm trying to create a request object to post data to a web URL.  My problem
is that I can't get past creating the request object.  I need to pass a
couple of values (a and b). The offending line of code is shown below:

$request = new HTTP::Request('POST',"http://www.someurl.com",[a => '1', b =>
'2']);

According to the documentation the name=value pairs are passed as above but
whenever PERL encounters this line I get the following error:

Can't call method "clone" on unblessed reference at
d:/Perl/site/lib/HTTP/Message.pm line 53.

Have I got the syntax wrong?  As far as I can see this is what the
documentation says it should be.

Many TIA

Bill


_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/listinfo/activeperl

Reply via email to