in reply to compare md5 from file against entire@md5 array
A foreach loop is also handy, e.g.:
my $found = 0; foreach my $element (@array) { if ($element eq $md5) { $found = 1; last; # STOP THE LOOP EARLY } }
This is a simple, obvious strategy that should be perfectly suitable for up to a few hundred thousand MD5s on today’s hardware.
Replies are listed 'Best First'. | |
---|---|
Re^2: compare md5 from file against entire@md5 array
by james289o9 (Acolyte) on Dec 04, 2013 at 14:16 UTC | |
by james289o9 (Acolyte) on Dec 04, 2013 at 14:20 UTC | |
by Jim (Curate) on Dec 05, 2013 at 02:15 UTC |
In Section
Seekers of Perl Wisdom