--- Wade Smart <[EMAIL PROTECTED]> wrote:

> 01072008 1955 GMT-6
> 
> if ($inrec =~ m|^(\%\S+\%)|) {
> 
> Im trying to figure out what this is looking for.
> The caret is saying the beginning of a zero-line file.
> 
> Im not good with Reg expressions.
> 
> Wade

This looks like a Perl implementation of regular expressions (=~).

The "m" means "match".  In this regex the pipe character (|) is used to define
the beginning and end of the pattern.  The \% means the percent character
literally.  The \S means non-space characters.  The plus means one or more of
the pattern at the left.

James

Reply via email to