A novice Perl question...
I need to extract the parent directory of a file from a fully qualified file name
(e.g. /htdocs/project1/docs/file.html where the parent directory of "file.html" would obviously be "docs")
Is this a job for regex???
Thank you for your help!
In reply to Extract Name of Parent Directory by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |