Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by Corion (Pope)
on Apr 21, 2020 at 06:07 UTC ( #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? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (1)
As of 2021-10-23 14:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (88 votes). Check out past polls.

    Notices?