dev > perl > modules > documentation
document updated 1 year, 11 months ago, on May 20, 2022


It bills itself as "friendlier to use than File::Spec".

I really REALLY like it. The interface is very well though-out, it has slurp() and slurp_utf8() and lines() and lines_ut8(). And it talks about compatibility with Windows, Linux, and AIX.

It's kind of a wrapper around several of the core-module functions related to paths and file-handling (File::Spec, Cwd, File::Find, File::Copy, File::Temp, Fcntl, File::stat), so it's not necessarily revolutionary. But it does smooth over some of the particular oddities of those APIs.

Its documentation doesn't explicitly say this, but it seems to be about files and file paths only, and doesn't play the dual-role that open() does — it stays away from any pipe-handling. For that, you'll have to go with something else like Capture::Tiny or IPC::Open3 or System::Command.