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.
In reply to Re: I humbly ask for your help with parsing
by atcroft
in thread I humbly ask for your help with parsing
by WxResearcher
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |