Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 imbibing at the Monastery: (6)
As of 2015-07-29 01:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls