in reply to RE: hashes
in thread hashes

i need the values to be printed out in that exact order, and if i didn't specify the keys they would be random..

Replies are listed 'Best First'.
RE: RE: RE: hashes
by KM (Priest) on May 31, 2000 at 22:02 UTC
    print OUT $hash{key1}; print OUT $hash{key2}; etc...

    If you want them in a specific order, use them in that specific order. Or do something like:

    my @keys = ('one', 'two', 'three'); for (@keys) { print OUT $hash{$_}; }

    Then, you have already predetermined your order, and can add/change it at any time.

    Cheers,
    KM