in reply to Practical example of "Is Perl code maintainable"
sub file_mode { my ($file_name) = @_; if (-f $file_name) { my $mode = (stat _)[2]; return $mode; } else { return -1; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Practical example of "Is Perl code maintainable"
by Anonymous Monk on Aug 22, 2012 at 20:56 UTC | |
by Your Mother (Archbishop) on Aug 22, 2012 at 21:29 UTC | |
by runrig (Abbot) on Aug 22, 2012 at 21:14 UTC |