I can't seem to get Mech to work right just yet, but I think I can fix whatever I did wrong. I fell in love with the interface reading the docs, and I really want it now.
It seems to not be finding LWP at all, which is bizarre. Off to Google...
Re:what's the prob?
chaoticset on 2004-04-15T16:14:33
I'm not home, so I can't give you the detailed version. Short version goes like this: Installed Mech viaperl -MCPAN -e shell
, it fired off some warnings about not being able to find things in LWP and HTML (off the top of my head, HTML::Form was one of the missing items). I attempted to do a Make, but it's complaining about the missing separator. (Which I'm sure is my problem. I thought I'd had it licked when I switched to GNU make, because the thing I was having problems with when I switched worked after I switched, but that seems to have been luck.)I realize this is all very sketchy. I can get you the error message later, if you're still interested.
Re:what's the prob?
chaoticset on 2004-04-16T02:11:58
I got home a short time ago -- here's the response I've been getting:
Can't locate object method "requests_redirectable" via package "WWW::Mechanize" (perhaps you forgot to load "WWW::Mechanize"?) at C:/Perl/site/lib/WWW/Mechanize.pm line 156.
Re:what's the prob?
petdance on 2004-04-16T02:18:49
OK, but where's the source code?Are you actually doing a "use WWW::Mechanize"?
Re:what's the prob?
chaoticset on 2004-04-16T14:05:08
Sorry about that. When the first attempt to use failed, I reduced the source to this:And it produces that exact error.#!\usr\bin\perl
use strict;
use warnings;
#use diagnostics;
use WWW::Mechanize;
###
# Create the agent.
my $agent = WWW::Mechanize->new();