Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Loop behavior with HTML::TokeParser::Simple

by WhiteBird (Hermit)
on Dec 20, 2003 at 02:09 UTC ( [id://315971]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while ( $token=$p->get_token() )
    {
    if ($token->is_start_tag('img') )
    ...
     print "SRC NOW: $src\n"; #For Debugging
     $token->set_attr('src', $src);
    }
    
  2. or download this
    got filetitle: ApplePecanBreadStuffing
    SRC IS ../../images/dbimage.asp?ID=751
    ...
    SRC NOW: 'ApplePecanBreadStuffing.jpg'
    SRC IS ../../images/spacer.gif
    SRC NOW: 'ApplePecanBreadStuffing.jpg'
    

Log In?
Username:
Password:

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

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

    No recent polls found