Birgit Kellner wrote: > > --On Sonntag, 06. Jänner 2002 22:48 -0500 "Michael R. Wolf" > <[EMAIL PROTECTED]> wrote: > > > > Which is why many folks use a parser rather than regular > > expressions for this. The parsers take care of the special > > cases that are very, very, very (read the history of this > > group) difficult to get around with RE's. Trying to do a > > full-blown RE to get all the special cases would be like > > trying to herd cats. Don't try it but for the very simple > > cases. > > I know, but the problem is that HTML::Parser only works with *files*. You > have to pass a filename to it.
Actually, no you don't: =item $p->parse( $string ) Parse $string as the next chunk of the HTML document. The return value is normally a reference to the parser object (i.e. $p). Handlers invoked should not attempt modify the $string in-place until $p->parse returns. If an invoked event handler aborts parsing by calling $p->eof, then $p->parse() will return a FALSE value. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]