in reply to Re^2: Perl/Tk binding Tab
in thread Perl/Tk binding Tab
// 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;
|
|---|