in reply to Re^2: Speeding up perl script
in thread Speeding up perl script

After creating the hash, using the parameter values as the key (see above), you can search for the parameter with:
if (exists $vars{'parameter'}) { # It is there! } else { # It is not there }
This avoids an iterative search through the array.