http://qs1969.pair.com?node_id=367548

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