use Data::Dumper; $Data::Dumper::Useqq = 1; print Dumper $var; print Dumper \@allServers;
You might have some non-printable characters either in the server list or in $var that prevent you from getting matches.
In reply to Re^5: Regular expression match in code
by moritz
in thread Regular expression match in code
by truptivk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |