"Sputnik" help  
Sputnik Help
Language Reference - Operators - Operator cmpi (Same as <=> but treated as Strings (Case Insensitive))

Operator cmpi

Tests if two objects (treated as strings) are lower(-1), equal (0) or higher (1) (case insensitive). e.g.

my $var = "Hello";
if ($var cmpi "Hello")
{
    say "true";
}
else
{
    say "false";
}
// PRINTS
// false

my $var = "Hello";
if ($var cmpi "hello")
{
    say "true";
}
else
{
    say "false";
}
// PRINTS
// false

To see a list of all the operators go here.


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