in reply to Re: help speeding up my perl code
in thread help speeding up my perl code

Or, keep setting it to undef, but test with an if (exists $hash{$key})