Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by tye (Sage)
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?
[moritz]: I had an office move too, two floors up
[moritz]: so far I've managed not to get into my old office by accident, but once it was close (already stopped at the wrong floor)

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2017-10-17 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (224 votes). Check out past polls.

    Notices?