[Pdx-pm] last directory in a path
jeff at zeroclue.com
Wed Nov 7 17:07:24 PST 2007
You may find File::Spec->splitdir helpful
Thomas Keller wrote:
> I know I'll be kicking myself in a few minutes,
> ... but how do you pop off the parent directory from a path?
> I thought dirname from File::Basename would do it
> Ex: /Users/me/data/this_one/
> I want to capture the string "this_one".
> MMI Shared Resource Facility <http://www.ohsu.edu/research/core>
> kellert at ohsu.edu <mailto:kellert at ohsu.edu>
More information about the Pdx-pm-list