vit has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,
Nowdays many of us have to merge Java and Perl codes (I do it a lot) or reprogram Perl codes to Java.
One of Perl's beauties is nested hashes
$hash{key1}...{keyN} = val
which in Java is pretty clumsy. Could anybody share with me a good java method which fills out a HashMap of HashMap on N nested levels. Purely String version or same Obj version is OK for me.

Replies are listed 'Best First'.
Re: Nested hash of hashes - Perl to Java
by LanX (Saint) on Jul 27, 2013 at 15:33 UTC
        LOL interesting: =)

        Took me some searching to find references in the archive: JavaJunkies: Open For Business

        update

        but IMHO Perlmonks used to have a Java board isn't correct, rather others tried to use the board software for Java discussions.

        Cheers Rolf

        ( addicted to the Perl Programming Language)