The begin of structure is a specific Name. And means the key of my hash. Every key contains rrays which are a list of every element I Need to draw within in this structure. The elements of the Array differs from key to key. So this means the first key is able to have about 10 elements and the second key is able to have about 50 elements;Begin of structure-> #something to draw #anything else to draw #something to draw End of Structure Begin of structure-> #something to draw end of structure
And my idea was to find the last element of this Array in the structure and add the end of structure (equal with command printEndstr of the modul)like this:%hash{@structure_name1} => {[@draw1, @draw2,]}; %hash{@structure_name2} => {[@draw1, @draw2, @draw3]};
The Problem is, that in gdsFile there are more Ends of structure and beginnings of structure. I Thing the Problem is the recursion or something like that%hash{@structure_name1} => {[@draw1, @draw2,"$gds2File->printEndstr]}; %hash{@structure_name2} => {[@draw1, @draw2, @draw3, $gds2File->printE +ndstr]};
In reply to Re^2: add element to hash
by Anonymous Monk
in thread add element to hash
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |