perl expression statement?

hatch coltraine

New member
I'm teaching myself perl on the fly, and I can't find any good documentation on regular expressions and delimiters that don't involve "Hello World."

Can you help me decipher what this expression is doing?

if (/^WAIT #(\d+): nam='([^']*)' ela=\s*(\d+)/i)

the input is a oracle trace file, and this line is looking for lines anchored with WAIT. But I'm not following the rest of the line
is there a way to make WAIT = $1?
 
Back
Top