The basic process is still the same. You record what you have seen and make processing decisions based on that data.
doSomething($data) unless $seen{$key}++Providing appropriate values for $key, doSomething(), and $data are left as an exercise for the reader.
Update: Perhaps I am misunderstanding your question. Please post what you expect to see as output given the provided input data.
--MidLifeXis
In reply to Re^3: Remove node information by searching tag element
by MidLifeXis
in thread remove node information by searching tag element.
by veerubiji
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |