Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: elegant way of handling hash?

by blazar (Canon)
on Jan 19, 2006 at 09:51 UTC ( [id://524170]=note: print w/replies, xml ) Need Help??


in reply to elegant way of handling hash?

my %replacementhash = map { $_="TEMP$_"; $_ => "contains $_"} 1..4;

Seriously, it all really depends, on how you actually get the values, i.e. on your APIs. Probably a for or a while loop are the best way to go. Hard to tell anyway, without seeing real code...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (8)
As of 2024-04-19 09:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found