Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: UTFM - Use the Friendly Modules

by gav^ (Curate)
on Mar 08, 2002 at 23:22 UTC ( [id://150460]=note: print w/replies, xml ) Need Help??


in reply to UTFM - Use the Friendly Modules

A slightly easier to follow version:
use HTML::TreeBuilder; foreach (<*.html>) { my $tree = HTML::TreeBuilder->new_from_file($_); if ($tree->look_down('_tag', 'img', sub { !$_[0]->attr('alt') })) +{ print "$_ has a missing alt tag\n"; } $tree->delete; }

gav^

Log In?
Username:
Password:

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

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

    No recent polls found