in reply to File::Spec::Win32::catfile behaviour for empty path components
Given that the catdir documentation specifies "Concatenate two or more directory names...", and that I failed to provide "two or more directory names" as arguments, I think it's reasonable that I got an error - though perhaps it would be clearer if catdir were to count the arguments received, and then reject my code on the basis of "insufficient arguments".C:\>perl -MFile::Spec -e "print File::Spec::Win32::catfile('')" Can't call method "canonpath" without a package or object reference at + C:/_32/ap1004/lib/File/Spec/Win32.pm line 130. C:\>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File::Spec::Win32::catfile behaviour for empty path components
by ikegami (Patriarch) on Nov 05, 2008 at 10:20 UTC | |
|
Re^2: File::Spec::Win32::catfile behaviour for empty path components
by rovf (Priest) on Nov 05, 2008 at 11:43 UTC |