1 #!/usr/local/bin/perl -w
9 my $file = "perms.$$" ;
12 This is a bit of contents
18 write_file( $file, $text ) ;
19 is( getmode( $file ), 0640, 'default perms works' ) ;
22 write_file( $file, { perms => 0777 }, $text ) ;
23 is( getmode( $file ), 0750, 'set perms works' ) ;
29 return 07777 & (stat $_[0])[2] ;