[Pdx-pm] last directory in a path

Thomas Keller kellert at ohsu.edu
Wed Nov 7 16:36:40 PST 2007

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
kellert at ohsu.edu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/pdx-pm-list/attachments/20071107/35c774fd/attachment.html 

More information about the Pdx-pm-list mailing list