1 #!/usr/local/bin/perl -w
7 plan skip_all => "meaningless on Win32" if $^O =~ /win32/i ;
10 my $file = "perms.$$" ;
13 This is a bit of contents
19 write_file( $file, $text ) ;
20 is( getmode( $file ), 0640, 'default perms works' ) ;
23 write_file( $file, { perms => 0777 }, $text ) ;
24 is( getmode( $file ), 0750, 'set perms works' ) ;
30 return 07777 & (stat $_[0])[2] ;