in reply to Array: inserting what isn't there

1) as you go through the data looking for numbers put the found numbers in a hash a remeber the largest one found. then at the end:
my @array = map { $hash{$_} ? "$_.found" : "$_.lost" } 1 .. $max_found +;
2) generate @array with:
$array[$number] = "$number.found";
when you're done:
@array = map { $array[$_] ? $array[$_] : "$_.lost" } 1 .. $#array;