Help for this page

Select Code to Download


  1. or download this
    my %tag_for = map { $_ => 1 } $text->tagNames;
    ... later ...
    if (exists $tag_for{$j}) { ... }
    
  2. or download this
    if (grep $_ eq $j, $text->tagNames) { ... }
    
  3. or download this
    first { $_ eq $j } $text->tagNames
    
  4. or download this
    $text->does_tag_exist($tag_name)