jithoosin has asked for the wisdom of the Perl Monks concerning the following question:
use HTML::TokeParser; my $p = HTML::TokeParser->new($ARGV[0]); while (my $token = $p->get_token() ) { my @tag = @{$token}; if( $tag[0] eq 'S' || $tag[0] eq 'E' ){ print "$tag[@tag-1]\n" ; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTML::TokeParser Line numbers
by Tomte (Priest) on Nov 24, 2005 at 14:02 UTC | |
by jithoosin (Scribe) on Nov 24, 2005 at 14:58 UTC | |
by Tomte (Priest) on Nov 24, 2005 at 15:02 UTC |