in reply to Equality operators

hi, monks

#!/usr/bin/perl -w if (1 == 1) { print "triue\n"; } if(1 == 2) { print"false\n"; } if ('a' eq 'b') { print "trie\n"; } if('1'eq '1foo') { print "true\n"; } if('1' eq 'foo1') { print "false\n"; }

Here is the proper code which prints and checks the conditions properly If it checks for the numberic and strings.
As per perl comparison, you have to use the above syntax of checking if it in number or strings.