in reply to Re: matching strings
in thread matching strings

That's not what cmp is for. It's the string equvilent of <=> and is meant for use in sorting operations. In this case, it won't work at all as shown, because it returns 0 when the two strings are equal (unless( $a cmp $aa) would work, but there is a better way).

What the OP really wants is eq.

----
send money to your kernel via the boot loader.. This and more wisdom available from Markov Hardburn.