While using the File::Basename, File::Spec, or other similar module will certainly do what you are looking for, in this case it may be overkill.
If there is absolutely no expectation of this script ever running on a non unix-ish platform why use a sledgehammer to drive a nail?
In reply to Re: remove directory path
by linux454
in thread remove directory path
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |