// is the defined-or operator. If the left part is undefined, take the right part else take the left part.
my $c = $a // $b;
Is like
my $c = defined $a ? $a : $b;
but easier and chainable
my $x = $a // function ($b) // $ENV{FOO} // $self->bar // 0;
In reply to Re^3: Perl/Tk binding Tab
by Tux
in thread Perl/Tk binding Tab
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |