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;
    }