Big5
view release on metacpan or search on metacpan
t/210_chmod.t view on Meta::CPAN
# encoding: Big5
# This file is encoded in Big5.
die "This file is not encoded in Big5.\n" if q{ } ne "\x82\xa0";
my $__FILE__ = __FILE__;
use Big5;
print "1..1\n";
my $chcp = '';
if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/oxms) {
$chcp = `chcp`;
}
if ($chcp !~ /932|950/oxms) {
print "ok - 1 # SKIP $^X $0\n";
exit;
}
open(FILE,'>F@\') || die "Can't open file: F@\\n";
print FILE "1\n";
close(FILE);
# chmod
if (chmod(0755,'F@\') == 1) {
print "ok - 1 chmod $^X $__FILE__\n";
}
else {
print "not ok - 1 chmod: $! $^X $__FILE__\n";
}
unlink('F@\');
__END__
( run in 0.576 second using v1.01-cache-2.11-cpan-f56aa216473 )