Perl Programming/Keywords/m

Previous: lt Keywords Next: map

The m keyword

m is a regular expression match operator used als m//.

Syntax

  m/…[/]

Examples

 # Shorthand form uses // to quote the regular expression
 $Text =~ /search words/;

 # The m function allows you to use your choice of quote marks
 $Text =~ m|search words|;
 $Text =~ m{search words};
 $Text =~ m<search words>;
 $Text =~ m#search words#;

See also

Previous: lt Keywords Next: map
Category:Book:Perl Programming#Keywords/m%20
Category:Book:Perl Programming