Hi,
My example absolutely should be a one-liner - if invoked from the shell. What I wanted to do, however, was achieve the same thing from inside a lengthy perl script (that does lots of other things) without (a) having to code the whole thing with proper error-checking etc and without (b) forking another perl just to save typing.
Ikegami's answer is closest to the spirit of my request but the answers that suggest using Path::Tiny are probably easier to read, which is a "good thing"™.
Thanks for your interest.
<°}}}>«<
In reply to Re^2: Avoid re-invocation for -pie processing
by seismofish
in thread Avoid re-invocation for -pie processing
by seismofish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |