<html>
<body>
I realize I'm not as smart as a I once was. I'm confused about the
following substitution:<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><tt>my
$filename&nbsp;&nbsp; = $GLOBAL{'FILE_NAME'}; <br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>$filename
=~ s/.+\\([^\\]+)$|.+\/([^\/]+)$/$1/;<br><br>
</tt>How does the $1 work in this? Is it necessary? This is from an old
piece of code. The s/ line is generating errors in my Apache log file and
I can't figure out why. Thanks for any help.<br><br>
</body>
</html>