blink has asked for the wisdom of the Perl Monks concerning the following question:
foreach my $key (sort keys %jobs) { my $job = $jobs{$key}->{jobid}; my $status = $jobs{$key}->{status}; my $client = $jobs{$key}->{client}; my $class = $jobs{$key}->{class}; my $files = $jobs{$key}->{files}; if ($status gt 0 && $status ne 150) { my ($host, $sid, $type) = split ('_', $class); if ($type =~ /hot|cold/) { push (@{$failed{$client}}, $sid); } else { push (@{$failed{$client}}, $files); } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Does inner hash/key exist?
by pfaut (Priest) on May 31, 2003 at 13:55 UTC | |
by blink (Scribe) on May 31, 2003 at 14:01 UTC | |
|
Re: Does inner hash/key exist?
by Aristotle (Chancellor) on May 31, 2003 at 14:04 UTC | |
|
Re: Does inner hash/key exist?
by runrig (Abbot) on May 31, 2003 at 15:05 UTC |