case SVt_PVHV:
case SVt_PVCV:
croak("%s: buffer parameter is not a SCALAR reference", string);
+ default:
+ break;
}
if (SvROK(sv))
croak("%s: buffer parameter is a reference to a reference", string) ;
case SVt_PVHV:
case SVt_PVCV:
croak("%s: buffer parameter is not a SCALAR reference", string);
+ default:
+ break;
}
if (SvROK(sv))
croak("%s: buffer parameter is a reference to a reference", string) ;
case SVt_PVHV:
case SVt_PVCV:
croak("%s: buffer parameter is not a SCALAR reference", string);
+ default:
+ break;
}
if (SvROK(sv))
croak("%s: buffer parameter is a reference to a reference", string) ;
case SVt_PVHV:
case SVt_PVCV:
croak("%s: buffer parameter is not a SCALAR reference", string);
+ default:
+ break;
}
if (SvROK(sv))
croak("%s: buffer parameter is a reference to a reference", string) ;
ok ! -e $name, " $name does not exist";
- eval qq[\$a = new $UncompressClass "$name" ;] ;
- is lc($!), "no such file or directory", '$! = "no such file or directory"';
+ $a = new $UncompressClass "$name" ;
+ is $a, undef;
my $gc ;
my $guz = new $CompressClass(\$gc);
ok ! $gz, " Did not create $CompressClass object";
- {
- if ($to_file) {
- like lc($$Error), '/permission denied/',
- " Got non-writable filename message" ;
- }
- else {
- ok $$Error, " Got error message" ;
- }
- }
+ ok $$Error, " Got error message" ;
}
chmod 0777, $out_file ;