Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Pair Tag missing

by Adrade (Pilgrim)
on May 31, 2005 at 04:41 UTC ( [id://461921]=note: print w/replies, xml ) Need Help??


in reply to Pair Tag missing

My two cents:
my $data; $data .= $_ while (<>); for ( ($data =~ m/<([^\/>]+)/sg) ) { push(@opened, $_) if ! ($data =~ s/<\/$_>//s); } print "Opened: ", join(' - ', @opened), "\n"; print "Closed: ", join(' - ', ($data =~ m/<\/([^>]+)/sg) ), "\n";

Obviously not for complex tags - :-)
Best,
  -Adam

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://461921]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-18 18:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found