| Next | Program Repair Shop | 11 |
I've seen this before, but never on a regular array
Usually, you see something like this:
$input = something;
for $key (%hash) {
if ($key eq $input) {
do_something($hash{$key});
}
}
Which should of course be:
$input = something;
do_something($hash{$input}) if exists $hash{$input};
| Next | ![]() |
Copyright © 2006 M. J. Dominus |