in reply to Comapring two values of a scalar

Plz format your posting according to Markup in the Monastery

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)