Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^4: Using Number Ranges in a Dispatch Table

by ForgotPasswordAgain (Deacon)
on Feb 19, 2012 at 01:27 UTC ( #954828=note: print w/replies, xml ) Need Help??

in reply to Re^3: Using Number Ranges in a Dispatch Table
in thread Using Number Ranges in a Dispatch Table

If we're being nitpicky :) no need to create a lexical block for map:
$ perl -Mstrict -MData::Dumper -we'my%h=( (map +($_=>2), "B","C","D"), + one=>1 ); print Dumper(\%h)' $VAR1 = { 'one' => 1, 'D' => 2, 'C' => 2, 'B' => 2 };

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://954828]
[shmem]: moin Corion, karlgoethebier. I stumbled over <<>> occasionally on the p5p mailing list
[Discipulus]: not noticed
[karlgoethebier]: sometimes rereading manages is helpful ;-) at least for me...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2017-07-21 07:59 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (319 votes). Check out past polls.