in reply to 5.8.1 Released!
instead of$a // $b
anddefined $a ? $a : $b
instead of$c //= $d;
The operator has the same precedence and associativity as ||.$c = $d unless defined $c;
H. Merijn Brand uses this in his production environments for quite some time already, so it appears to be pretty stable. Of course, using this operator will make your code unportable to "standard" Perl 5.8.1, so YMMV.
Liz
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: defined or: // and //=
by Abigail-II (Bishop) on Sep 25, 2003 at 20:43 UTC |