Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 rifling through the Monastery: (8)
As of 2014-10-01 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (9 votes), past polls