Name
get_tag
Synopsis
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"
.
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.