I get the following error when I try to execute that subroutine
path" is not exported by the Path::Tiny module\nCan't continue after import
I use -
use File::stat;
use Path::Tiny qw/ path /;
use File::Spec;
| [reply] |
path" is not exported by the Path::Tiny module\nCan't continue after import
All you need is use Path::Tiny; ... newer versions of Path::Tiny allow typing use Path::Tiny 'path'; which documents where path() comes from
Path::Tiny uses File::stat and File::Spec automagically ... stick with the path() api, and get the latest version for the most features and bug fixes
Both modules are shown as available via ppm http://code.activestate.com/ppm/Path-Tiny/ and http://code.activestate.com/ppm/Time-Piece/
| [reply] [d/l] [select] |
From Path::Tiny github repository, I saw that "path" was being exported by default from the beginning (around version 0.0x). If OP is using at least a version from that tree, then use Path::Tiny qw[ path ] should work.
Could OP possibly be using an even older version?
| [reply] [d/l] |