Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: hash unorderly output

by chanakya (Friar)
on May 26, 2005 at 06:25 UTC ( [id://460518]=note: print w/replies, xml ) Need Help??


in reply to hash unorderly output

The following code snippet should help you
use strict; use warnings; use Tie::IxHash; tie my %hash_var, 'Tie::IxHash'; %hash_var = ( "grp1" => "normal,random,sequential", "grp2" => "willneed,dontneed,free", "grp3" => "access_lwp,access_many,access_default" ); #Print the hash foreach my $grp (keys %hash_var) { my $advise_value = $hash_var{$grp}; print "$grp ===> $advise_value\n"; }
Hope this helps

!!@!!
May the force be with you

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-25 17:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found