in reply to Re: creating valid paths for Path::Tiny
in thread creating valid paths for Path::Tiny

Because I like Path::Tiny, I wanted to add that it does include methods for these tests, too. Then I noticed that the author himself says
Use -f instead if you really mean to check for a plain file.

Another ++ I'd give for your example of enclosing the file name in visible delimiters like "<$file>".

However, use 5.011 implies strict (although use states 5.012 as the first with this property) so OP already is "strict-compliant" ;-)

Replies are listed 'Best First'.
Re^3: creating valid paths for Path::Tiny
by Lotus1 (Vicar) on Aug 14, 2018 at 19:27 UTC

    Path::Tiny seems like a really useful module. Thanks for pointing out that it includes file tests.

    Your observation about 'use' seems like it would be a good bug report for Perldocs.