Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Mechanizing around Javascript

by runrig (Abbot)
on Apr 25, 2013 at 22:26 UTC ( #1030741=note: print w/replies, xml ) Need Help??


in reply to Mechanizing around Javascript

if ($mech->success()){
The default is autocheck is ON, which means you don't have to check for success, it will die if unsuccessful.
$mech->follow_link( url=> 'https://...
Why follow_link? Just get() it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1030741]
help
Chatterbox?
[james28909]: how can i write a while loop on one line (in a script) something like print "this\n" && print "that" && <DATA> && print the other\n" && next if /this matches/ while <DATA>?
[james28909]: i have tried with && and and and have tried to rearrange the functions as well to no avail

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2018-05-20 18:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?