in reply to if fooled by pesky leading white space
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*$/))
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: if fooled by pesky leading white space
by partymeeple (Novice) on Jul 14, 2008 at 04:17 UTC | |
by planetscape (Chancellor) on Jul 14, 2008 at 06:39 UTC |