SPUG: Slice of HashOfHash

Joshua ben Jore twists at gmail.com
Mon Nov 20 08:52:27 PST 2006


On 11/20/06, Jacinta Richardson <jarich at perltraining.com.au> wrote:
> DeRykus, Charles E 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);
>
> I don't believe this is available in the 5.8 branch, but it's there for some of
> the 5.9 bleedperls.  The English version of this will be "dor" (and possibly
> "err" as well) and like "or" will have a lower precedence than //.

H.Merijn Brand has patches on CPAN against earlier perls to add the //
operator. See the dor patches in his CPAN directory:
http://cpan-sj.viaverio.com/authors/id/H/HM/HMBRAND/. It covers all of
5.8.

Josh


More information about the spug-list mailing list