Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Practical example of "Is Perl code maintainable"

by eyepopslikeamosquito (Canon)
on Aug 13, 2007 at 07:44 UTC ( #632152=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub file_mode {
      my ($file) = @_;
    ...
              $dummy, $dummy, $dummy, $dummy) = stat($file);
      return $mode;
    }
    
  2. or download this
    sub file_mode {
      -f shift or return -1;
      return (stat(_))[2];
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://632152]
Approved by Corion
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-04-18 12:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (467 votes), past polls