Help for this page

Select Code to Download


  1. or download this
        my( $avail, $total )= MemoryStatus( "MB",
            "AvailPageFile", "TotalPageFile" );
    
  2. or download this
        my( $avail, $total )= MemoryStatus( "MB",
            [ "AvailPageFile", "TotalPageFile" ] );
    
  3. or download this
        my $hMem= MemoryStatus( "K" );
        my $load= $hMem->{MemoryLoad};
    
  4. or download this
        perl -de 0
          DB<1> use Win32::MemoryInfo "MemoryStatus"
    ...
            'AvailPageFile' => 3026
            'TotalPageFile' => 32768
    [...]
    
  5. or download this
    my @fieldNames=
        qw( MemoryLoad TotalPhys AvailPhys TotalPageFile
    ...
        my $hFields= {};
        @$hFields{@fieldNames}= @fieldValues;
        return @_ ? @$hFields{@_} : $hFields;