Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The number of times Topology is displayed is important but irrelevant in my example, my main concern is every element after that, so my objective is to somehow parse the data and end up with the following:Topology/IPClassA = 1/Device = 1/Port = 1 Topology/IPClassA = 1/Device = 2/Port = 2 Topology/IPClassB = 3/Device = 3
Any suggestions? Thanks<Topology> <IPClassA = 1> <Device = 1> <Port = 1> </Port = 1> </Device = 1> <Device = 2> <Port = 2> </Port = 2> </Device = 2> </IPCLASSA = 1> <IPCLASSB = 3> <Device = 3> <?Device = 3> </IPCLASSB = 3> </Topology>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Data Structure Advice
by seattlejohn (Deacon) on Mar 07, 2002 at 03:29 UTC |