in reply to Comapring two values of a scalar
And then plz try to rephrase your question, the code given doesn't look like Perl and your examples are cryptic...
Cheers Rolf
( addicted to the Perl Programming Language)