Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
/path/to/some/file.txt /path/to/some/directory/ Now what I would like to do is write this list to another file, but in the case of directories, I would like to have them in the format: /directory/=directory/ ie, take to last directory from the full path. I've had a look at File::Spec and File::Basename but don't think they can help me!! Any help appreciated. Regards, Stacy.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Complex string parsing
by arturo (Vicar) on Apr 25, 2001 at 04:52 UTC | |
by Anonymous Monk on Apr 25, 2001 at 05:34 UTC | |
by jeroenes (Priest) on Apr 25, 2001 at 15:59 UTC | |
|
Re: Complex string parsing
by greenFox (Vicar) on Apr 25, 2001 at 04:44 UTC |