Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 rifling through the Monastery: (6)
As of 2014-10-02 10:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (54 votes), past polls