Fix "Useless use of a constant in void context" warning introduced by
#31709 which was causing failures in ext/Compress/Zlib/t/05examples.t
and ext/IO_Compress_Zlib/t/010examples.t on Win32.
p4raw-id: //depot/perl@31720
=cut
sub case_tolerant () {
- if ($^O ne 'cygwin') return 1;
+ if ($^O ne 'cygwin') {
+ return 1;
+ }
my $drive = shift || "/cygdrive/c";
my $mntopts = Cygwin::mount_flags($drive);
if ($mntopts and ($mntopts =~ /,managed/)) {
use vars qw(@ISA $VERSION);
require File::Spec::Unix;
-$VERSION = '1.6';
+$VERSION = '1.6_01';
@ISA = qw(File::Spec::Unix);
sub case_tolerant () {
eval { require Win32API::File; } or return 1;
- my $drive = shift or "C:";
+ my $drive = shift || "C:";
my $osFsType = "\0"x256;
my $osVolName = "\0"x256;
my $ouFsFlags = 0;