sandorado has asked for the wisdom of the Perl Monks concerning the following question:
And my question is, how to save which polygon and rectangle belongs to which class. Because I want to create an Outputfile, where i have to list all Polygons and rectangle. The Polygons and rectangles differs because of coordinates, they also contain. The Output should be like this:<class="abc"> <polygon> <polygon> <rectangle> </class> <class="def"> <polygon> <rectangle> <rectangle> </class>
Could someone explain me, how I should solve this Problem, that every polygon and rectangle know to which class they belong? I thought some hashes could help, but do not know how to create them. Thanks Regards<polygon class ="abc" coordinates=".."> <polygon class="abc" coordinates="--"> #and so on
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Creation of Hash necessary?
by GrandFather (Saint) on Aug 14, 2014 at 09:33 UTC | |
|
Re: Creation of Hash necessary?
by poj (Abbot) on Aug 14, 2014 at 08:51 UTC | |
|
Re: Creation of Hash necessary?
by Anonymous Monk on Aug 14, 2014 at 08:12 UTC | |
by sandorado (Initiate) on Aug 14, 2014 at 08:27 UTC | |
by Anonymous Monk on Aug 14, 2014 at 08:34 UTC | |
|
Re: Creation of Hash necessary?
by Athanasius (Archbishop) on Aug 14, 2014 at 14:01 UTC | |
by Anonymous Monk on Aug 18, 2014 at 04:51 UTC | |
|
Re: Creation of Hash necessary?
by choroba (Cardinal) on Aug 14, 2014 at 22:56 UTC |