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