Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: elegant way of handling hash?

by ambrus (Abbot)
on Jan 19, 2006 at 16:47 UTC ( [id://524280]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %replacehash = (
            TEMP1 => $flow->getExeName(),
            TEMP2 => $flow->getTempName(),
            TEMP3 => $flow->getData()->getNameType(),
    )
    
  2. or download this
    my %replacehash;
    @replacehash{map { "TEMP$_" } 1 .. 3} = (
    ...
            $flow->getTempName(),
            $flow->getData()->getNameType(),
    )
    

Log In?
Username:
Password:

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

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

    No recent polls found