in reply to array holding reference of hash and another array

use strict; use warnings; my @arrexample = qw(The quick brown fox does stuff);; my %hashexample = qw(k1 v1 k2 v2 k3 v3); my @arr = (\@arrexample, \%hashexample);
how can I dereference @arr

@arr is not a reference, so you cannot dereference it. Its elements are references.

assign @arrexample to @arrexample_copy out of @arr:
my @arrexample_copy = @{$arr[0]};
assign %hashexample to %hashexample_copy out of @arr:
my %hashexample_copy = %{$arr[1]};