Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Benchmark: Constant List in Hash Slice

by dave_the_m (Monsignor)
on Mar 14, 2019 at 15:01 UTC ( #1231258=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use constant foo qw(a b c);
    @a = $h{foo()}
    
  2. or download this
    use constant foo [qw(a b c)];
    @a = $h{@{foo()}}
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2019-06-17 14:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (79 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!