Just a quick guess: Create a copy to your list instead of a reference:
$current_main_record{"role_data"} = [@role_records];In reply to Re: How to create a new array with the same name as an existing one in a loop?
by haj
in thread How to create a new array with the same name as an existing one in a loop?
by MrSnrub
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |