warn "Test data is in Unix format; may not work on $^O" unless File::Spec->isa('File::Spec::Unix');
Fails on Win32, because File::Spec::Win32 inherits from File::Spec::Unix (see line 11 of File::Spec::Win32 v3.75). Another design issue in File::Spec (in addition to case_tolerant()). File::Spec::Unix is also used as base class for other, unrelated operating systems, instead of using an explicit base class.
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\alex>perl -MFile::Spec -E "say File::Spec->isa('File::Spec::W +in32')" 1 C:\Users\alex>perl -MFile::Spec -E "say File::Spec->isa('File::Spec::U +nix')" 1 C:\Users\alex>
Alexander
In reply to Re^4: File::Spec::Win32 returning different result than File::Spec when doing catfile with empty string
by afoken
in thread File::Spec::Win32 returning different result than File::Spec when doing catfile with empty string
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |