"Sputnik" help  
Sputnik Help
Language Reference - Operators - Operator ?? (Null Switch)

Operator ??

Null switch. eg.

my $a = 700;
say $a ?? "The variable is null";
// PRINTS
// 700

my $a = null;
say $a ?? "The variable is null";
// PRINTS
// The variable is null

This works because if the $a is null then it returns whats to the right of it instead.

See also Operator ??= (Null Coalescing Assignment)

To see a list of all the operators go here.


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org