Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: copying array from a hash reference

by davido (Archbishop)
on Sep 28, 2011 at 02:37 UTC ( #928221=note: print w/ replies, xml ) Need Help??


in reply to copying array from a hash reference

You need to dereference the array-ref if you're going to copy it to a new array:

@AniAry = @{$AniType{cats}}

...for example. perlref, perlreftut, perldsc are good sources of information. If you plan to use Perl, they're worth investing the time reading.


Dave


Comment on Re: copying array from a hash reference
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2014-07-10 05:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (199 votes), past polls