Software >> Development >> Languages >> Perl >> What is the syntax for pattern matching operation.

1. Syntax: m/<pattern>/<options> 2. <options> g match globally i case-insensitive m treat string as multiple lines o compile pattern only once s treat string as single line x use extended regular expression 3. If string not assigned to $_ then use string =~ /<pattern>/opt 4. For details see man perlop.