michaelg has asked for the wisdom of the Perl Monks concerning the following question:
This one is a bit problematic.
I need to read a file into a data structure that enables quick sorting, searching etc.
The data look like this:
where AAA and BBB are first level keys, and the next are vertexes (x,y) of a polygonAAAAAAA p 1 6 1105720 2453315 1106720 2453315 1106720 2453950 1106715 2453950 1106715 2454525 1105720 2454525 p 2 6 1105720 2456125 1106720 2456125 1106720 2456760 1106715 2456760 1106715 2457335 1105720 2457335 p 3 6 1105720 2458940 1106720 2458940 1106720 2459575 1106715 2459575 1106715 2460150 1105720 2460150 BBBBBBB p 1 6 1105720 2461750 1106720 2461750 1106720 2462385 1106715 2462385 1106715 2462960 1105720 2462960 p 2 6 1112965 2466125 1113330 2466125 1113330 2466120 1114175 2466120 1114175 2467120 1112965 2467120 p 3 6 1118210 2453315 1119210 2453315 1119210 2454525 1118215 2454525 1118215 2454170 1118210 2454170
Edited by BazB fixed code tag, tidy/fixed formatting..and added readmore.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cpan Data sturcture
by Abigail-II (Bishop) on Jan 27, 2004 at 17:38 UTC | |
by Fletch (Bishop) on Jan 27, 2004 at 18:10 UTC | |
by Anonymous Monk on Jan 27, 2004 at 18:54 UTC | |
|
Re: cpan Data structure
by punkish (Priest) on Jan 27, 2004 at 19:06 UTC | |
|
Re: cpan Data structure
by Vautrin (Hermit) on Jan 27, 2004 at 19:01 UTC | |
by Abigail-II (Bishop) on Jan 27, 2004 at 22:45 UTC |