Or this? (Observe the position of the exclamation mark.)
if ( grep { !/^$str/i } keys %$format) [download]
In reply to Re^5: check parameters by hdb in thread check parameters by ag4ve