Help for this page

Select Code to Download


  1. or download this
    my %ofInterest = map { $_ => 1 } qw[
        perl.exe
        cmd.exe
        textpad.exe
    ];
    
  2. or download this
    my @fields = qw[ Name WorkingSetSize UserModeTime KernelModeTime ];
    
  3. or download this
    for my $info ( 
    # This ^^^^^ var will be set to the hashref each of the ...
    ...
    # ............................with the field names   ^^^^^^^
    # ..to produce the wanted 4 values and supply them to printf
    }
    
  4. or download this
    my @fields = qw[ Name WorkingSetSize UserModeTime KernelModeTime ];
    ...
    printf ... @{ $info }{ @fields };
    
  5. or download this
    printf ... @{ $info }{'Name','WorkingSetSize','UserModeTime','KernelMo
    +deTime'};
    
  6. or download this
    printf ... $info->{ Name }, $info->{ WorkingSetSize }, 
               $info->{ UserModeTime }, $info->{ KernelModeTime };