Beefy Boxes and Bandwidth Generously Provided by pair Networks httptech
Perl Monk, Perl Meditation
 
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: (10)
As of 2014-04-24 10:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (565 votes), past polls