Parent directory - regexby jevon (Initiate)
|on Jun 17, 2004 at 06:40 UTC||Need Help??|
jevon has asked for the wisdom of the Perl Monks concerning the following question:
I found dirname
oops. Forget it!
Given the string "/dir1/dir2/dir3/ .. /dirLast//"
is stored in a variable $myDirectory
How do I extract the entire path up to "/dirLast"?
Put simply, I want the path to the parent directory