sub Path::Class::Dir::basename { return $self->dir_list(-1); }
Alternatively, this idiom would probably work for most cases:
file($p)->basename;
In reply to Re: get the "last part" of a Path::Class object
by mrpeabody
in thread get the "last part" of a Path::Class object
by thepler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |