SPUG: Slice of HashOfHash

Yitzchak Scott-Thoennes sthoenna at efn.org
Tue Nov 28 10:46:24 PST 2006


On Tue, Nov 21, 2006 at 12:36:15AM +1100, Jacinta Richardson wrote:
> I suspect he means dor (//): defined or.  In 5.10 you'll be able to write:
> 
> 	$a //= 0;
> 
> which will be the same as writing:
> 
> 	$a = ( defined $a ? $a : 0);

Make that:

    defined $a ? $a : ($a = 0);


More information about the spug-list mailing list