>>>>> "You" ==   <[EMAIL PROTECTED]> writes:

You> I don't understand the regex s#.*/##s
You> (given as part of the solution to problems 2 and 3)

You> more specifically, I don't know what the last 's' does
You> to the regex.

As others have said, the trailing "s" allows newline to be matched:
otherwise, we'd have a potential security hole with a false assumption
that we've stripped the pathname down to the base filename, since Unix
paths can contain newline.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Reply via email to