But I thought maybe there was some way around it
If the subroutine returns a list instead of a hashref, there's not much you can do about it.
Just for a little bit more explanation: when you say return %hash, the hash gets flattened into a plain ol' list. When you subsequently say my %hash = foo(), that shoehorns the list into a new hash. Again, there's nothing you can do about this without modifying the subroutine's return statement.
In reply to Re: Re: Re: Reference to a sub return / Config::General
by revdiablo
in thread Reference to a sub return / Config::General
by Oberon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |