Hey, thanks for your quick Respons. I know how to create hashes. Sorry for this missunderstanding. it's more about, that I do not know how the hash should look alike in this specific case
Well if you want to gather up all the classes, maybe hash of arrays
my %class;
$class{def}[0] = $rectangle;
$class{def}[1] = $polygon;
$class{def}[2] = $rectangle2;
$class{jam}[0] = $tangle;
$class{jam}[1] = $gon;
$class{jam}[2] = $tangle2;
Now $rectangle/polygon.... could be a string or hash or another array ... whatever makes the most sense :)
|