in reply to How to copy an list from a reference hash?

Running this with use strict reveals a helpful error:

Global symbol "%P" requires explicit package name
in the line containing @e = $@{$P{'E'}};

$P is a reference, whereas $P{'E'} refers to a simple hash variable, called %P. Since you wish to use the reference, you will need to dereference it back to the hash %$P, using either:

$$P{'E'}
or
$P->{'E'}

Now, since that is also a reference to an array, you will need to dereference that with;

@{$P->{'E'}}
So the line which strict reports in error should be:
@e = @{$P->{'E'}};

Hope that helped,
use strict; # it's the right thing to do
-v
"Perl. There is no substitute."