On Sun, Oct 07, 2001 at 01:26:53AM +0200, Bart Lateur wrote:
> >  my $foo = $hash{foo} || 'some default';
> >  my $bar = $hash{bar} || 'some other default';
> 
> What about zero.

No problem in Perl 6.

    my $foo = %hash{foo} // 'some default';


-- 

Michael G. Schwern   <[EMAIL PROTECTED]>    http://www.pobox.com/~schwern/
Perl6 Quality Assurance     <[EMAIL PROTECTED]>       Kwalitee Is Job One
BOFH excuse #231:

We had to turn off that service to comply with the CDA Bill.

Reply via email to