Andres,
    Was this using LWP?  That doesn't look like a real LWP incantation.  I
would look at CPAN (cpan.org I think) to see the documentation for what ever
library you are using.  Unless the author guarantees the code will work I
wouldn't assume that it should.  Perhaps is book is about LWP just an old
version, it's (unfortunately) not uncommon for a PERL library's interface to
change from one version to the next.

/B
----- Original Message -----
From: "andres finlandes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 25, 2002 03:17
Subject: Strange error


>
>
> Hi!
>
>    When I try to run one example in Sean M. Burke's book, an error ocurrs
in
> this line:
>
> my $resp = $browser->get('http://www.perl.com/', ':content_cb' => sub {
> my ($data, $resp) = @_; ........
>
>     Error message says:
> Unexpected field value CODE(0x812116c) at (eval 4) line 1.
>
>     When debugging inside HTTP::Request::Common in function called
> "_simple_req"
> program fail in line:
>
>     $req->push_header($k,$v);
>
>     I suppose (0x812116c) is the function's address. The program is fine
> cause it's a book's example.
>
>      Thank you in advance.
>
> Andres.
>
>
>
>
>
> _________________________________________________________________
> Charla con tus amigos en l�nea mediante MSN Messenger:
> http://messenger.microsoft.com/es

Reply via email to