[Melbourne-pm] Nested maps returning hash references

Andrew Pam andrew at sericyb.com.au
Tue Oct 4 23:01:09 PDT 2011

On 05/10/11 16:57, Toby Corkindale wrote:
> On 05/10/11 16:53, Andrew Pam wrote:
>> On 05/10/11 16:52, Toby Corkindale wrote:
>>> That was one of the first things I tried after reading the map
>>> function's documentation - it doesn't work - not valid syntax.
>> Haha - OK how about using "return" (is that valid inside a map?)
> Nope, tried that unsuccessfully too.

How about "my $hash = {...}"

The result of the assignment should be returned as the last thing evaluated.

Of course it's still more maintainable to have the outer map just call a

Hope that helps,
Andrew Pam <andrew at sericyb.com.au>
Serious Cybernetics

More information about the Melbourne-pm mailing list