On Mon, Jan 18, 2016 at 1:37 PM, Elizabeth Mattijsen <l...@dijkmat.nl> wrote:
>> On 18 Jan 2016, at 19:55, Tom Browder <tom.brow...@gmail.com> wrote:
>> In creating some new Perl 6 programs I've run across several instances
>> I'm confused about, to wit:
>>
>> Example 1
>> ---------------
>>
>>> my %h; say 'false' if !%h<a>:exists;
>> Unexpected named parameter 'exists’ passed
>
> Yeah, this is an unexpected one.  However, there is a simple solution:
>
>   my %h; say 'false' if %h<a>:!exists;
>
> In general, :foo is equivalent to foo => True, and :!foo is equivalent to foo 
> => False.

Okay, I'll just have to get used to it, then.

Thanks, Liz!

-Tom

Reply via email to