sub file_mode { my ($file_name) = @_; if (-f $file_name) { my $mode = (stat _)[2]; return $mode; } else { return -1; } }
In reply to Re: Practical example of "Is Perl code maintainable"
by Anonymous Monk
in thread Practical example of "Is Perl code maintainable"
by eyepopslikeamosquito
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |