in reply to Re^4: Remove node information by searching tag element
in thread remove node information by searching tag element.
Given your output data, the approach I provided will do the job. $key should be the 'number tag element'. Don't add the results if you have already seen the number.
This block of code illustrates the technique.
my @data = qw( a b 3 d a f b ); my %seen; for ( @data ) { print $_, "\n" unless $seen{$_}++; } __DATA__ a b 3 d f
You should be able to apply this technique to your problem space.
--MidLifeXis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Remove node information by searching tag element
by veerubiji (Sexton) on Nov 24, 2011 at 18:03 UTC |