in reply to I humbly ask for your help with parsing
I think File::Spec's catdir(), splitdir(), catpath(), and splitpath() functions may be what you are looking for. You may use splitpath() to break the name apart, splitdir() to break the directory into a list, push() the desired directory name onto the end, then catdir() to reassemble the directory path, then catpath() to build the full name.
Hope that helps.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: I humbly ask for your help with parsing
by marinersk (Priest) on Oct 30, 2013 at 22:42 UTC |