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

Re: Winning an Intranet competition with the aid of WWW::Mechanize

by merlyn (Sage)
on May 13, 2005 at 16:10 UTC ( [id://456800]=note: print w/replies, xml ) Need Help??


in reply to Winning an Intranet competition with the aid of WWW::Mechanize

Why did you use:
my $text = $mech->content; my $tp = HTML::TokeParser->new(\$text); while (my $tag = $tp->get_tag('img')) { print "Found image: ", $tag->[1]{src}, "\n"; }
and not simply:
for ($mech->images) { print "Found image: ", $_->url_abs, "\n" }
See, I would have won. Less typing. :)

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-24 07:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found