Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extract Name of Parent Directory
by ctilmes (Vicar) on Jul 17, 2003 at 00:06 UTC | |
|
Re: Extract Name of Parent Directory
by sauoq (Abbot) on Jul 17, 2003 at 00:12 UTC | |
|
Re: Extract Name of Parent Directory
by bobn (Chaplain) on Jul 17, 2003 at 01:19 UTC | |
|
Re: Extract Name of Parent Directory
by LazerRed (Pilgrim) on Jul 17, 2003 at 00:16 UTC | |
|
Re: Extract Name of Parent Directory
by Coruscate (Sexton) on Jul 17, 2003 at 01:08 UTC | |
by cchampion (Curate) on Jul 17, 2003 at 07:10 UTC | |
by gellyfish (Monsignor) on Jul 17, 2003 at 10:29 UTC |