in reply to array copy question

Just to be clear: the curlies are still not required, but you have to declare the reference ($ra_ret_save) separately from dereferencing it.
my $ra_ret_save; @$ra_ret_save = @$ra_ret;
If you really had a jones for doing it all at once:
my $ra_ret_save = [@$ra_ret];

The PerlMonk tr/// Advocate