in reply to Creation of Hash necessary?

I thought some hashes could help, but do not know how to create them.

Hello :)

TutorialsData Types and VariablesData Type: ArrayData Type: HashReferences quick reference

More elaborate and coprehensive tutorial in http://learn.perl.org/books/beginning-perl/, Learn Perl in about 2 hours 30 minutes, perlintro, chromatics free book Modern Perl a loose description of how experienced and effective Perl 5 programmers work....You can learn this too.

 

rm -rf goners

Replies are listed 'Best First'.
Re^2: Creation of Hash necessary?
by sandorado (Initiate) on Aug 14, 2014 at 08:27 UTC
    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.

      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 :)

       

      rm -rf goners