Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Practical example of "Is Perl code maintainable" (golf)

by tye (Cardinal)
on Aug 13, 2007 at 15:54 UTC ( #632243=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub file_mode
    {
    ...
        my( $dev, $ino, $mode )= stat( _ );
        return $mode;
    }
    
  2. or download this
    # The items returned by stat():
    my( @Stat, %Stat );
    ...
        my $mode= ( stat _ )[ $Stat{mode} ];
        return $mode;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2014-07-28 12:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (197 votes), past polls