[Chicago-talk] Probably and easy explanation I'm missing...

Jim Jacobus JJacobus at PonyX.com
Thu Aug 24 13:30:13 PDT 2006


I realize I'm not as smart as a I once was. I'm confused about the 
following substitution:
         my $filename   = $GLOBAL{'FILE_NAME'};
         $filename =~ s/.+\\([^\\]+)$|.+\/([^\/]+)$/$1/;

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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20060824/9b30d020/attachment.html 


More information about the Chicago-talk mailing list