Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

RE: RE: RE: hashes

by KM (Priest)
on May 31, 2000 at 22:02 UTC ( [id://15667]=note: print w/replies, xml ) Need Help??


in reply to RE: RE: hashes
in thread hashes

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://15667]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-26 01:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found