Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: HTML::TokeParser Frustration

by graff (Chancellor)
on Oct 17, 2008 at 04:47 UTC ( #717657=note: print w/replies, xml ) Need Help??


in reply to Re^2: HTML::TokeParser Frustration
in thread HTML::TokeParser Frustration

Instead of this:
print "Found Data: $text\n";
try this:
use Data::Dumper qw/Dumper/; ... print Dumper( $text );
As explained in the manual for HTML::TokeParser, the "get_tag" function returns a reference to an array, and Dumper is just an easy way to see what the array elements contain.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2021-10-25 06:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (89 votes). Check out past polls.

    Notices?