if( $str1 =~ m/\Q$str2/gi ) { ...
The use of the /g modifier is meaningless in this context, although it does no harm.
In reply to Re^2: Stupid question about strings...
by AnomalousMonk
in thread Stupid question about strings...
by kepler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |