Re: html tags and perl



Michele Dondi napisa?(a):

Earlier today someone posted a question about HTML::TokeParser, and
people answered giving some explicit example. You may enjoy reading
that thread. Your case is actually easier than what was being asked
there...

I wrote sth like this:

use HTML::TokeParser;
my $p = HTML::TokeParser->new(\$html_file);
while (my $token = $p->get_tag('img'))
{
#how can i write sth to the src attr ?
#like: new attr="/e/.jpg"
}

Damian
.



Relevant Pages

  • Re: Code review request: small optimization to localtime.c
    ... Instead of just reading "if is threaded", ... We already have a policy of using explicit ... "if (!(flags & MASK))" are not normal. ...
    (freebsd-arch)
  • Thread-safety guarantees for basic ops
    ... explicit locking by the programmer: ... Reading a reference value ... thread-safe, ...
    (microsoft.public.dotnet.framework.clr)
  • Re: Car hire problem
    ... without reading it, didn't you...? ... The rental of the car is that price. ... If the surcharge wasn't explicitly flagged, ...
    (uk.legal)
  • Re: JSH: Heart of dispute, number properties
    ... Arturo Magidin wrote: ... > have given explicit examples. ... Am I reading this correctly? ...
    (sci.math)
  • Re: Golf...
    ... "Michele Dondi" wrote in message ... :>even after reading MJD's excellent tutorial at I know not where (can't ... My apologies to Simon and Wolfgang, and thanks to you for reminding where ...
    (comp.lang.perl.misc)