in reply to Re: Re: Reference to a sub return / Config::General
in thread Reference to a sub return / Config::General
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Reference to a sub return / Config::General
by Oberon (Monk) on Jan 23, 2004 at 16:05 UTC | |
by revdiablo (Prior) on Jan 24, 2004 at 05:49 UTC |