Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Practical example of "Is Perl code maintainable"

by DrHyde (Prior)
on Aug 16, 2007 at 11:11 UTC ( #633001=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub file_mode {
        my $filename = shift;
        return -1 unless(-f $filename);
        return(stat($filename))[2];
    }
    
  2. or download this
      return (-f $filename) ? (stat($filename))[2] : -1
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://633001]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2014-11-23 04:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (128 votes), past polls