Use a regex instead of eq to perform a more relaxed match:
if ( ($staff[$i * 3 + $staff_last] =~ /^\s*\Q$names[0]\E\s*$/) && ($staff[$i * 3 + $staff_first] =~ /^\s*\Q$names[1]\E\s*$/))
In reply to Re: if fooled by pesky leading white space
by GrandFather
in thread if fooled by pesky leading white space
by partymeeple
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |