$foo = 'This is a CAPITAL test, man'; $bar = 'IS A cap'; if ((lc $foo) =~ (lc $bar)) { print lc $foo; print "\n"; print lc $bar; print "\n"; print 'YES'; } else { print lc $foo; print "\n"; print lc $bar; print "\n"; print 'NO'; }
...the above works fine. But a small change as this:
if (lc $foo =~ lc $bar)
...breaks it.
Thanks!
Kickstart
In reply to Operator precedence by Kickstart
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |