[Pdx-pm] last directory in a path
Jeff Lavallee
jeff at zeroclue.com
Wed Nov 7 17:07:24 PST 2007
You may find File::Spec->splitdir helpful
Thomas Keller wrote:
> Hi,
> 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".
> thanks,
> Tom
> MMI Shared Resource Facility <http://www.ohsu.edu/research/core>
> 503-494-2442
> kellert at ohsu.edu <mailto:kellert at ohsu.edu>
>
>
More information about the Pdx-pm-list
mailing list