How to use associative arrays in Ada 2005?



Hi!

Can anybody explain me how to use associative arrays in Ada 2005? I
mean hashes like in Perl. Some background: I'm a student of
Computational Linguistics and try to get away from Perl which I find
not efficient enough (at my university, Perl is the standard language
used by the professors). In my opinion, C++ is cool but Ada's syntax is
better to avoid dirty code.

So, when I say "hash", I mean something Perl-like like
"$hashname{key1}{key2} = 'something' ". Or something C++-like like "map
<string,int> hashname; hashname["key1"] = 42;".

Is there anything similar in Ada 2005, too? I bought the book
"Programming in Ada 2005" by John Barnes but I don't understand the
author's way of explaining a programming language (for me, the book is
more confusing than explaining).

Or does anybody know a good tutorial similar to the lots of C- and
Perl-tutorials? I found many Ada-tutorials but most of them just list
the contents of the built-in packages and don't explain how to use
them. As a beginner this is confusing.

Thanks for every answer!

CU,
Matthias

.



Relevant Pages

  • Re: Ada Popularity: Comparison of Ada/Charles with C++ STL (and Perl)
    ... > KC> done much more cheaply and effectively in Perl or a similar language. ... Multiply this 1000 times for a medium to large program and I think Ada ... understand why Ada is not more popular for desktop applications I ...
    (comp.lang.ada)
  • Re: Advanced scripting languages (was: Learning Ada83)
    ... Ada has it's strengths, but it's not the tool for every job. ... > Because it would take a week to learn Perl well enough to use it that way. ... Author of "Linux Shell Scripting with Bash" ...
    (comp.lang.ada)
  • Re: Ada Popularity: Comparison of Ada/Charles with C++ STL (and Perl)
    ... >>code in a single file. ... I also wrote the program in Perl. ... It doesn't prove that Perl is the best language for every job. ... the original thread was about Ada popularity. ...
    (comp.lang.ada)
  • Re: Directory listing
    ... Someone who doesn't know that it's Perl, ... (or Ada, not ADA) ... Don't attribute to stupidity that which can be adequately explained by ignorance. ... Don't attribute to ignorance that which can be adequately explained by misunderstanding. ...
    (comp.lang.perl.misc)
  • Re: Adding a delimiter inbetween number characters and letter characters
    ... necessary minimum) quotes of the relevant material you're replying ... COMPLEX regexen tend to become confusing, ... IF RTM is a matter of a few lines that first or later you ... Perl, that is... ...
    (comp.lang.perl.misc)