There's more than one way to do things | |
PerlMonks |
array holding reference of hash and another arrayby Sun751 (Beadle) |
on Sep 08, 2009 at 06:15 UTC ( [id://794063]=perlquestion: print w/replies, xml ) | Need Help?? |
Sun751 has asked for the wisdom of the Perl Monks concerning the following question:
if an array @arr holds reference of another array and hash for example, @arr = (\@arrexample, \%hashexample); how can I dereference @arr and assign @arrexample to @arrexample_copy out of @arr and assign %hashexample to %hashexample_copy out of @arr? any idea? please, cheers, Updates..... As from above we know that @arr hold hashref and arrref. I am looking forward to get hash and array that @arr hold in %hashexample_copy and @arrexample_copy.
Back to
Seekers of Perl Wisdom
|
|