Try this:
if ( 'f' eq 't' ) { print "f equals t\n"; } else { print "f does not equal t\n"; } [download]
In reply to Re^3: Illogical logic statement by Laurent_R in thread Illogical logic statement by fkento