Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^5: running an example script with WWW::Mechanize* module

by Corion (Patriarch)
on Apr 21, 2020 at 06:07 UTC ( [id://11115857]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Invalid rule, couldn't parse '//*[@name="date", node => $mech->current
    +_form ]'
    
  2. or download this
     my @date_fields =$mech->selector( './/*[@name="date"]', node => $mech
    +->current_form );
    # stderr: Invalid rule, couldn't parse '//*[@name="date"]' at /usr/loc
    +al/share/perl/5.26.1/HTML/Selector/XPath.pm line 283.
    
  3. or download this
     my @date_fields =$mech->xpath( './/*[@name="date"]', node => $mech->c
    +urrent_form );
    
  4. or download this
    $mech->set_fields(
        date => [3, $date_value],
    );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-19 07:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found