<div>Hey Toby,</div><div><br></div><div>I think there are two problems here:</div><div><br></div><div>  - Andrew was right. Put a + in front of the block</div><div>  - can($_) in the second block is being called on the qw{} and not on an object</div>
<div><br></div><div>Alfie </div><br><div class="gmail_quote">On Wed, Oct 5, 2011 at 5:01 PM, Andrew Pam <span dir="ltr"><<a href="mailto:andrew@sericyb.com.au">andrew@sericyb.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 05/10/11 16:57, Toby Corkindale wrote:<br>
> On 05/10/11 16:53, Andrew Pam wrote:<br>
>> On 05/10/11 16:52, Toby Corkindale wrote:<br>
>>> That was one of the first things I tried after reading the map<br>
>>> function's documentation - it doesn't work - not valid syntax.<br>
>><br>
>> Haha - OK how about using "return" (is that valid inside a map?)<br>
><br>
> Nope, tried that unsuccessfully too.<br>
<br>
</div>How about "my $hash = {...}"<br>
<br>
The result of the assignment should be returned as the last thing evaluated.<br>
<br>
Of course it's still more maintainable to have the outer map just call a<br>
function.<br>
<br>
Hope that helps,<br>
<div class="im">                Andrew<br>
--<br>
Andrew Pam <<a href="mailto:andrew@sericyb.com.au">andrew@sericyb.com.au</a>><br>
Serious Cybernetics<br>
</div><div><div class="h5">_______________________________________________<br>
Melbourne-pm mailing list<br>
<a href="mailto:Melbourne-pm@pm.org">Melbourne-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/melbourne-pm" target="_blank">http://mail.pm.org/mailman/listinfo/melbourne-pm</a><br>
</div></div></blockquote></div><br>