Help for this page

Select Code to Download


  1. or download this
    sub parseinline
    {
        my $stag=0;
    ...
        while ($_ =~ /<\/b>/g){$etag++}
        if ($stag != $etag){print "Mismatch between start and end element 
    +for '<b>' in $ARGV[0]."}
    }
    
  2. or download this
    use XML::parser;
    ...
    ...
    XML::parser->parsetag();
    
  3. or download this
    sub parseinline
    {
        my $stag=0;
    ...
        while ($_ =~ /<\/$_[0]>/g){$etag++}
        if ($stag != $etag){print "Mismatch between start and end element 
    +for '$_[0]' in $ARGV[0]."}
    }