in reply to get the "last part" of a Path::Class object

This being perl I have to suggest a regex solution:

m#([^/]+)/*$# # and use $1 now

Replies are listed 'Best First'.
Re^2: get the "last part" of a Path::Class object
by Anonymous Monk on Jun 23, 2007 at 07:25 UTC
    This being Perl, you run into trouble once you are on another file-system which uses different delimiters.