Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928221]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2017-11-19 17:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (282 votes). Check out past polls.

    Notices?