in reply to Re^2: complaint: always testing defined()
in thread complaint: always testing defined()

It seems // (binary defined-or operator) isn't popular enough for some reason (available at least in 5.8.8) ...

my $p; $p //= 2; my $q = 0; $q //= 2; print $p , $q; # 20

A few minutes later... Well, above isn't available by default in 5.8.8 but via separate patch. It seems the patch isn't popular enough for some reason.

:)

Replies are listed 'Best First'.
Re^4: complaint: always testing defined()
by Joost (Canon) on Nov 02, 2007 at 13:47 UTC
      Thanks for the clue. I did not realize that the defined-or patch is unconditionally applied these days to Perl 5.8.8 port (as in FreeBSD lang/perl5.8 port).