I'm also pretty sure Cwd is a Core perl module, so I'm not sure where you're going with that.
I didn't say Cwd was wrong. I said you only answered half the question, and that your method for answering the first half can't be expanded to answer the second. I just added two lines to the top of the snippet for clarity.
In reply to Re^2: Dissecting a complete pathname to a file
by ikegami
in thread Dissecting a complete pathname to a file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |