in reply to Regular expression problemette

The =~ operator binds a variable to a regexp. In this example, the regexp is looking at $0 to see if it begins with a path. If it does, the filename by itself is captures to $1. This is combined with a ternary conditional (?:). If the regexp is successful, the match is returned to $this_proc, otherwise, $0 is.