The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



Thread: help with perl
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 05-16-2008
era era is online now
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,064
m%....% is a regular expression match; you'd normally see /.../ or m/.../ but we don't want to use slashes when the pattern itself contains slashes.

If there is a match, the part of the string which matched the parenthesized part of the regular expression will be in $1.
Reply With Quote