Perl Programming/Keywords/m
Appearance
The m keyword
[edit | edit source]m is a regular expression match operator used als m//.
Syntax
[edit | edit source] m/…[/…]
Examples
[edit | edit source] # 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#;