Aside from the other comments by fellow monks, you may need to perform the match the other way around ($string =~ m/$msg/i). It mostly depends on what you want to achieve.
In reply to Re: Matching a scalar variable
by alexm
in thread Matching a scalar variable
by adneto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |