Subject: | [PATCH] catdir is for directories |
Date: | Fri, 26 Jun 2015 14:18:52 -0500 |
To: | bug-Pod-Simple [...] cpan.org |
From: | "Craig A. Berry" <craigberry [...] mac.com> |
When 3.30 came into blead a bunch of tests started failing on VMS because there were new uses of File::Spec::catdir for paths that are not directories and this produced directory names that did not exist rather than the desired filenames.
The attached patch either changes those to catfile or, where possible, eliminates the use of File::Spec altogether. If you have control over all of the components, you might as well just use Unix syntax as that’s understood by Unix, VMS, and Windows. You only need to use File::Spec to concatenate paths when one or more of the components is in native syntax, such as the return value of Cwd::cwd().
Show quoted text
________________________________________
Craig A. Berry
mailto:craigberry@mac.com
"... getting out of a sonnet is much more
difficult than getting in."
Brad Leithauser
Message body is not shown because sender requested not to inline it.