use Quantum::Superpositions qw(any); return any(splatterSort(@list) and isSorted(@list));