recursive function and hashe

From: Sébastien Cottalorda (sppNOSPAM_at_libello.com)
Date: 01/31/05


Date: Mon, 31 Jan 2005 14:48:55 +0100

I all,

Here is my problem,

I'd like to store in a hash table those numbers like that:
(123, 124, 13, 145, 2, 25)

%number = (
        "1" => {
                "2" => {
                        "3" => {
                                "value" => "OK"
                        },
                        "4" => {
                                "value" => "OK"
                        },
                },
                "3" => {
                        "value" => "OK"
                },
                "4" => {
                        "5" => {
                                "value" => "OK"
                        }
                }
        },
        "2" => {
                "value" => "OK",
                "5" => {
                        "value" => "OK"
                }
        }
);

I think I need to use recursive function, but I did know how, I'm not
familiar with passing references.

If someone can help me.

Thanks in advance.

Sébastien

-- 
[ retirer NOSPAM pour répondre directement
 remove NOSPAM to reply directly ]


Relevant Pages

  • Re: printing PDF in win32
    ... > I have some pdf files to print to a network printer using a perl script ... [retirer NOSPAM pour répondre directement ...
    (comp.lang.perl.misc)
  • Re: brute force prog for linux
    ... "John the ripper" is probably your friend ... ... [retirer NOSPAM pour répondre directement ...
    (comp.os.linux.security)
  • ippersonality and RH 9.0
    ... I've tried for many days without any success. ... The module is loaded, but when I try to add a PREROUTING rule, in the mangle ... [retirer NOSPAM pour répondre directement ...
    (comp.os.linux.security)
  • regexp: x0a => x0dx0a
    ... I have \x0a characters and I'd like to replace them by the couple ... [retirer NOSPAM pour répondre directement ...
    (comp.lang.perl.misc)