Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
***Major Newby Question Warning***

OK, now that the warning is in place. I have simple question I was hoping someone can give me direction on.
I have recently installed the WWW:Mechanize PPM package for Activestate Perl on Windows. This is version .48 of the package.
First I seem to be having some trouble getting the latest version to build so I installed the prior version.
Next I am getting this problem when I try to isntantiate a new class.
Can't locate object method "requests_redirectable" via "WWW::Mechanize +" (perhaps you forgot to load "WWW::Mechanize"?) at C:/Perl/site/lib/WWW +/Mechanize.pm line 156.

The offending code in the PM is this.

sub new { my $class = shift; my %default_parms = ( agent => "WWW-Mechanize/$VERSION", cookie_jar => {}, ); my $self = $class->SUPER::new( %default_parms, @_ ); $self->{page_stack} = []; $self->{quiet} = 0; $self->env_proxy(); push( @{$self->requests_redirectable}, 'POST' ); return bless $self, $class; }


The offending line being the push.
I feel as though I am missing something here, but I have isntalled every related package I can think of. I must get some screen scraping done soon and cannot get cUrl to install on windows (libcurl at least, not the command line version) and now Mechanize. Perhaps there is something better?
Can the wonderful monks of Perl save me from doing this in C++ (where I have a library)?

In reply to WWW:Mechanize and Windows by Akira71

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2024-04-20 03:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found