in reply to Creating reference to hash and array
Thanx to a previous posting from ikegami, I now know that the way to get the desired result is to force perl to treat the braces as an anonymous hash by prefixing with a '+' i.e.
sub Create_hashref{ +{@_}; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Creating reference to hash and array
by wol (Hermit) on Apr 14, 2009 at 11:11 UTC | |
by Bloodnok (Vicar) on Apr 14, 2009 at 11:19 UTC |