Help for this page

Select Code to Download


  1. or download this
    my @a = (
      [4129290, 1675967, 2412031, '41%', '/usr/bin' ],
    ...
    ======
    before sort: /local
    Sorted by drive: /usr/bin
    
  2. or download this
    my @df_k = split(/\n/, `df -k`);
    
    ...
       [    \@sorted_by_drive   ],
       [qw(  $sorted_by_drive  )],
    ));
    
  3. or download this
    sub parseIntoArraySolaris (@df)
                                ^^ what does this mean?
    ...
                                   but it's not listed in
                                   docs and it doesn't give
                                   the args to the var @df.
    
  4. or download this
    sub parseIntoArraySolaris {
       my @rows;
    ...
    
       return @rows;
    }
    
  5. or download this
    sub parseIntoArraySolaris {
       return map {
    ...
          [ $b/1024, $c/1024, $d/1024, $e, $f ]
       } @_;
    }
    
  6. or download this
    my @df_k = split(/\n/, `df -k`);
    
    ...
       [    \@sorted_by_drive   ],
       [qw(  $sorted_by_drive  )],
    ));
    
  7. or download this
    # Get data.
    my @df_k = split(/\n/, `df -k`);
    ...
       [    \@sorted_by_drive   ],
       [qw(  $sorted_by_drive  )],
    ));