... %final_data = @loop_data; ...
What is this line supposed to do?
Please also explain how you intend to use the data stored in %final_data.
Maybe you wanted to use the following construct instead?
return { names => \@loop_data };
In reply to Re^3: Returning hash reference from a sub
by Corion
in thread Returning hash reference from a sub
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |