Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Parent directory - regexby jevon (Initiate) |
on Jun 17, 2004 at 06:40 UTC ( [id://367548]=perlquestion: print w/replies, xml ) | Need Help?? |
jevon has asked for the wisdom of the Perl Monks concerning the following question:
I found dirname oops. Forget it! Hello Monks, 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 of $myDirectory. Thanks Jevon
Back to
Seekers of Perl Wisdom
|
|