Subject: | Please document API changes better |
hi --
The POD documentation regarding the 'modern way' of calling mkpath
doesn't indicate that is is unsupported on relatively-recent releases
of perl which bundle the module:
machine1$ perl -MFile::Path -e 'print $File::Path::VERSION."\n";
mkpath("foo", "bar")'; ls -ld foo bar
2.04
drwxrwxr-x 2 jmason jmason 4096 Apr 16 10:37 bar
drwxrwxr-x 2 jmason jmason 4096 Apr 16 10:37 foo
machine2$ perl -MFile::Path -e 'print $File::Path::VERSION."\n";
mkpath("foo", "bar")'; ls -ld foo bar
1.08
ls: bar: No such file or directory
drwxr-xr-x 2 build build 4096 Apr 16 11:37 foo
machine2 is running 5.8.8.
IMO, it would be very beneficial to add a line to the POD indicating the
File::Path version at which this API format was added, particularly
given that this produces buggy behaviour at runtime without inducing a
warning or error.