Subject: | Using &deref prevents &alias from working |
The documentation for Data::Alias states that &deref "Applies the
applicable dereferencing operator to each." However, when &alias is used
together with &deref, it yields an unexpected result:
use Data::Alias qw(alias deref);
my $arref = [qw(a..z)];
print $arref, "\n"; # ARRAY(0x13a5de8)
alias my @arr1 = @$arref;
print \@arr1, "\n"; # ARRAY(0x13a5de8)
alias my @arr2 = deref $arref;
print \@arr2, "\n"; # ARRAY(0x13ba458)