updated.C:\>perl -E "my $x = 0 ; say $x // 'true'; my $y = 1; say $y // 'true' +;$x = undef; my $a=$x // warn 'RHS evaluated'; say $a;" 0 1 RHS evaluated at -e line 1. 1
In reply to Re^3: Perl5 Language Extension: Definedness-Triggered Shortcut Operators
by ww
in thread RFC: Perl5 Language Extension: Definedness-Triggered Shortcut Operators
by martin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |