if ($PluginsLoaded{'LoadCache'}{'hashfiles'}) { LoadCache_hashfiles($filetoload,$hashtoload); }
if (! scalar keys %$hashtoload) {
open(DNSFILE,"$filetoload") or error("Couldn't open DNS Cache file \"$filetoload\": $!");
- binmode DNSFILE;
- # This is the fastest way to load with regexp that I know
+ #binmode DNSFILE; # If we set binmode here, it seems that the load is broken on ActiveState 5.8
+ # This is a fast way to load with regexp
%$hashtoload = map(/^(?:\d{0,10}\s+)?([0-9A-F:\.]+)\s+([^\s]+)$/oi,<DNSFILE>);
close DNSFILE;
if ($savetohash) {