30 #-----------------------------------------------------------------------------
49 #-----------------------------------------------------------------------------
55 $cnt = chmod 0755, 'foo', 'bar';
56 chmod 0755, @executables;
58 $cnt = chmod ( 0755, 'foo', 'bar' );
59 chmod ( 0755, @executables );
61 #-----------------------------------------------------------------------------
63 ## name chmod with strict option
65 ## parms { strict => 1 }
68 $cnt = chmod 0755, 'foo', 'bar';
69 chmod 0755, @executables;
71 $cnt = chmod ( 0755, 'foo', 'bar' );
72 chmod ( 0755, @executables );
74 #-----------------------------------------------------------------------------
80 dbmopen %database, 'foo.db', 0600;
81 dbmopen ( %database, 'foo.db', 0600 );
83 #-----------------------------------------------------------------------------
85 ## name dbmopen with strict option
87 ## parms { strict => 1 }
90 dbmopen %database, 'foo.db', 0600;
91 dbmopen ( %database, 'foo.db', 0600 );
93 #-----------------------------------------------------------------------------
99 mkdir $directory, 0755;
100 mkdir ( $directory, 0755 );
102 #-----------------------------------------------------------------------------
104 ## name mkdir with strict option
106 ## parms { strict => 1 }
109 mkdir $directory, 0755;
110 mkdir ( $directory, 0755 );
112 #-----------------------------------------------------------------------------
118 sysopen $filehandle, $filename, O_RDWR, 0666;
119 sysopen ( $filehandle, $filename, O_WRONLY | O_CREAT | O_EXCL, 0666 );
120 sysopen ( $filehandle, $filename, (O_WRONLY | O_CREAT | O_EXCL), 0666 );
122 #-----------------------------------------------------------------------------
124 ## name sysopen with strict option
126 ## parms { strict => 1 }
129 sysopen $filehandle, $filename, O_RDWR, 0666;
130 sysopen ( $filehandle, $filename, O_WRONLY | O_CREAT | O_EXCL, 0666 );
131 sysopen ( $filehandle, $filename, (O_WRONLY | O_CREAT | O_EXCL), 0666 );
133 #-----------------------------------------------------------------------------
142 #-----------------------------------------------------------------------------
144 ## name umask with strict option
146 ## parms { strict => 1 }
152 #-----------------------------------------------------------------------------
154 ##############################################################################
155 # $URL: http://perlcritic.tigris.org/svn/perlcritic/trunk/Perl-Critic/t/ValuesAndExpressions/ProhibitLeadingZeros.run $
156 # $Date: 2008-06-22 16:23:43 -0700 (Sun, 22 Jun 2008) $
157 # $Author: clonezone $
159 ##############################################################################
163 # cperl-indent-level: 4
165 # indent-tabs-mode: nil
166 # c-indentation-style: bsd
168 # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :