use Path::Tiny qw/ path /; print path( qw[ /ro/sham/bo ] )->basename; __END__ bo [download]
In reply to Re: Parsing Pathnames ( Path::Tiny ) by Anonymous Monk in thread Parsing Pathnames by carlriz