Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^4: Variable as name of array

by choroba (Canon)
on Nov 01, 2012 at 22:56 UTC ( #1001882=note: print w/ replies, xml ) Need Help??

in reply to Re^3: Variable as name of array
in thread Variable as name of array

Or even, horrors, a slice:

use Data::Dumper; my @names = qw/ A B C D /; my %order; @order{ @names } = @names; print Dumper \%order; __END__ Prints: $VAR1 = { 'A' => 'A', 'D' => 'D', 'C' => 'C', 'B' => 'B' };
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Comment on Re^4: Variable as name of array
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2015-11-26 01:01 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (695 votes), past polls