- or download this
my %ofInterest = map { $_ => 1 } qw[
perl.exe
cmd.exe
textpad.exe
];
- or download this
my @fields = qw[ Name WorkingSetSize UserModeTime KernelModeTime ];
- 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
}
- or download this
my @fields = qw[ Name WorkingSetSize UserModeTime KernelModeTime ];
...
printf ... @{ $info }{ @fields };
- or download this
printf ... @{ $info }{'Name','WorkingSetSize','UserModeTime','KernelMo
+deTime'};
- or download this
printf ... $info->{ Name }, $info->{ WorkingSetSize },
$info->{ UserModeTime }, $info->{ KernelModeTime };