in reply to Compare array - hash

first you'd get the values of the hash. After you've that, you can reduce this to a well known and well documented question.
update : someone who wants to remain anonymous would like you to know how to RTFM

Replies are listed 'Best First'.
Re: Re: Compare array - hash (boo)
by count0 (Friar) on Jan 14, 2002 at 22:36 UTC
    first you'd get the values of the hash.

    Inversely, it might be more effective to put the array into a hash.
    @file_contents_array = <FH>; %file_contents = map {$_ => 1} @file_contents_array; # Now you can more easily compare # %file_contents with your existing hash