3 ms·Perl and C++ use the <=> "spaceship" operator for that. Cmp for strings in Perl.by tyingq 7y agoPerl and C++ use the <=> "spaceship" operator for that. Cmp for strings in Perl.