Changing the initial line to invoke an anonymous reference:
$data{$tab} = [@array]
works a treat.
Any explanations would be most welcome.
In reply to references--hard vs anonymous operational weirdness by hill
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |