This code is not printing "CHK---". But if I remove the curly braces in the string, it works fine. The string cannot be changed but still i need to check for the pattern there.$row{test_name} = '{CHK.test: 1 2 3}'; if( $row{test_name} =~ "CHK" ) { print "CHK-------"; }
In reply to problem in search pattern by rsennat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |