Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by marto (Cardinal)
on Apr 19, 2020 at 09:02 UTC ( #11115788=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    foreach my $cast ( $dom->find('table.cast_list > tr:not(:first-child)'
    +)->each ){
      say trim ($cast->at('td:nth-of-type(2) > a')->text ) . ' as ' . trim
    + ( $cast->at('td.character')->all_text );
    }
    
  2. or download this
    Caddyshack (1980)
    Chevy Chase as Ty Webb
    ...
    Ann Ryerson as Grace
    Brian Doyle-Murray as Lou Loomis
    Hamilton Mitchell as Motormouth
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2021-01-22 01:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?