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

Re^2: My 'perldar' tells me there is a 'better' solution for this list operation

by revdiablo (Prior)
on Nov 04, 2006 at 01:45 UTC ( [id://582207]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @hash{"one", "two", "three"} = 1 .. 3;
    
  2. or download this
    ($hash{one}, $hash{two}, $hash{three}) = 1 .. 3;
    
  3. or download this
    my @list = @hash{"one", "two", "three"};
    
  4. or download this
    my @list = ($hash{one}, $hash{two}, $hash{three});
    

Log In?
Username:
Password:

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

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

    No recent polls found