跳到內容

Perl 程式設計/關鍵字/m

來自華夏公益教科書,開放的書籍,開放的世界
上一個:lt 關鍵字 下一個:map

m關鍵字

[編輯 | 編輯原始碼]

m是一個正則表示式匹配運算子,也用作m//.

  m/…[/]
 # 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#;

另請參閱

[編輯 | 編輯原始碼]
上一個:lt 關鍵字 下一個:map
華夏公益教科書