in reply to More than one way to do it???
i modified the regex to be s#.*/(.*)#$1#, and it seems to work for me.
Incidentally, perl complains about the \1 because you are doing it from the command line, and your shell is subject to processing escape characters as well. If you put the code above into a file, and do perl file.pl, it doesn't complain about using a \1.
-marius
Incidentally, perl complains about the \1 because you are doing it from the command line, and your shell is subject to processing escape characters as well. If you put the code above into a file, and do perl file.pl, it doesn't complain about using a \1.
-marius
In Section
Seekers of Perl Wisdom