"Sputnik" help  
Sputnik Help
Language Reference - Operators - Operator ~~~ (Strict Type Checking)

Operator ~~~

Strict type checking. e.g.

// Same as ~~ but more strict
// like it will require the exact class
// and will not accept an inherited name
Class Test
{
}
Class Base inherits "Test"
{
}
my $a = new Base();
// use ~~
// It will return true since
// $a inherits a Test
if ($a ~~ Test)
{
    say "It is or has a Test in it";
}
else
{
    say "Test not found";
}
// PRINTS
// It is or has a Test in it

// Now using strict ~~~
// it will return false since
// $a is a Base not a Test
if ($a ~~~ Test)
{
    say "It is or has a Test in it";
}
else
{
    say "Test not found";
}
// PRINTS
// Test not found

To see a list of all the operators go here.


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