Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: Some Weird behavior with BerkeleyDB and WWW::Mechanize

by downer (Monk)
on Dec 05, 2007 at 20:53 UTC ( [id://655220]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Some Weird behavior with BerkeleyDB and WWW::Mechanize
in thread Some Weird behavior with BerkeleyDB and WWW::Mechanize

i get the following error :  Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/vendor_perl/5.8.6/HTTP/Cookies.pm line 45. each time through the loop. I think this is happening somewhere within the WWW::Mechanize->get(), maybe this regex is modifying the regex somehow?

Replies are listed 'Best First'.
Re^5: Some Weird behavior with BerkeleyDB and WWW::Mechanize
by moritz (Cardinal) on Dec 05, 2007 at 21:34 UTC
    I seriously doubt that.

    If you look at sub get in Mechanize.pm:

    sub get { my $self = shift; my $uri = shift; ...

    The parameter $uri is passed by value, which means it is copied.

    Even it is modified later on, you'll never see that in your script because it's just a copy that's modified.

    However the uninitialized value might be a hint. Check $url for definedness, and die if it's not, then rerun your script.

      $url is defined and still generates this error... I dont understand why, I even get a error with LWP::Simple. this is an example of a key | value printed from the exact code posted above, a value that creates that weird error:
      $key: --Bwmk_a61s $value: www.youtube.com/watch?v=--Bwmk_a61s Camouflage en Santiago 2 +007/12/04 22:49:19 Suanmorket
      so the $url is www.youtube.com/watch?v=--Bwmk_a61s

      i checked, if i add a http:// to the front of the urls, I still encounter the same problems. weird!
        use warnings; and not -w and you can avoid such harmless warnings

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://655220]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2024-04-18 11:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found