Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: RFC: WWW::Mechanize Basics., Tutorial (In progress)

by runrig (Abbot)
on May 21, 2013 at 18:27 UTC ( #1034575=note: print w/ replies, xml ) Need Help??


in reply to RFC: WWW::Mechanize Basics., Tutorial (In progress)

Mech will die on errors (read the docs on changing that, and under what conditions it doesn't do that), so in the default mode, you don't need to test for $mech->success(). But you do need to eval operations that you don't want to die.

Also, I have never used the back() method, so to avoid memory issues, I always set the stack_depth option to zero. It's a good idea to set it to something, as the default is infinity.


Comment on Re: RFC: WWW::Mechanize Basics., Tutorial (In progress)
Download Code
Re^2: RFC: WWW::Mechanize Basics., Tutorial (In progress)
by PerlSufi (Pilgrim) on May 22, 2013 at 14:03 UTC
    Yep, You're right runrig - thanks!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (15)
As of 2014-09-16 17:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (40 votes), past polls