http://qs1969.pair.com?node_id=45311


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