rovf has asked for the wisdom of the Perl Monks concerning the following question:
I found out today, that catfile('') results in a nullstring on Perl 5.7 and Perl 5.10, but returns \ on Perl 5.8.8. The documentation of cpan:File::Spec::Win32 gives no information about this border case. Researching the issue a bit, I came accross the following Perl bug filed for Perl 5.8.8 which seems to cover this case: http://rt.perl.org/rt3//Public/Bug/Display.html?id=41439.
Interestingly, the bug was rejected, on the grounds that
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File::Spec::Win32::catfile behaviour for empty path components
by ikegami (Patriarch) on Nov 05, 2008 at 10:33 UTC | |
|
Re: File::Spec::Win32::catfile behaviour for empty path components
by syphilis (Archbishop) on Nov 05, 2008 at 10:10 UTC | |
by ikegami (Patriarch) on Nov 05, 2008 at 10:20 UTC | |
by rovf (Priest) on Nov 05, 2008 at 11:43 UTC |