Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Code Interpretation

by muba (Priest)
on Jul 28, 2014 at 15:37 UTC ( #1095378=note: print w/replies, xml ) Need Help??


in reply to Code Interpretation

You are correct so far.

@allrefs is an array. To get an element out of an array, you use a syntax like $array[ INDEX ]. To get multiple elements out of an array, you'd use @array[ INDEX1, INDEX2, ..., INDEXN ]. That's what's going on here: we sort the values of the %uni_refs hash, and then use those values as the indexes of elements to extract from @allrefs and store them in @refs.

Replies are listed 'Best First'.
Re^2: Code Interpretation
by Perl_Ally (Novice) on Jul 28, 2014 at 15:40 UTC

    Thanks so much muba! That makes perfect sense!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2019-04-18 20:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (105 votes). Check out past polls.

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