Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2016-12-05 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (76 votes). Check out past polls.