Try giving a non-empty filename or if you really want a directory name, use the catdir method instead. If you want your code to be fully portable, you will need to carry directory names as arrays and only use catfile at the very end to actually produce a filename to give to the OS. But this may be overkill if you are sure that your code will never run on VMS or similar.
In reply to Re: File::Spec::Win32 returning different result than File::Spec when doing catfile with empty string
by jcb
in thread File::Spec::Win32 returning different result than File::Spec when doing catfile with empty string
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |