Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: assigning arrays as values to keys of hash

by tybalt89 (Parson)
on Sep 18, 2018 at 23:06 UTC ( #1222614=note: print w/replies, xml ) Need Help??


in reply to Re^2: assigning arrays as values to keys of hash
in thread assigning arrays as values to keys of hash

It seems my "Efficiency is over-rated" comment was unclear. I fully believe (without testing, therefor as an article of faith) that my solution is slower than the two pass solutions. I guess I didn't make that clear. I am less interested in efficiency and more interested in solutions that show more rarely used perl capabilities.

TIMTOWTDI forever :)

  • Comment on Re^3: assigning arrays as values to keys of hash

Replies are listed 'Best First'.
Re^4: assigning arrays as values to keys of hash
by Marshall (Abbot) on Sep 18, 2018 at 23:50 UTC
    Now that I understand what your objective was, all is fine.
    For a newbie, my objective is to show simple code that will "run like a rocket".
    The complications in your code are too much for a beginner.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2019-07-21 02:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (7 votes). Check out past polls.

    Notices?