June 2002
Beginner
759 pages
80h 42m
English
get_tag
get_tag( )
Returns the next start or end tag in a document. If
there are no remaining start or end tags, get_tag returns undef. get_tag is useful because it skips
unwanted tokens and matches only the tag that you want—if it
exists. When a tag is found, it is returned as an array
reference, like so: [$tag, $attr,
$attrseq, $text]. If an end tag is found, is is
returned—e.g., "/$tag".