m#([^/]+)/*$# # and use $1 now
Perl 6 in German
In reply to Re: get the "last part" of a Path::Class object by moritz in thread get the "last part" of a Path::Class object by thepler