in reply to Speed of opening and closing a file 1000s times
and open each handle as needed, with a loop at the end over natures to close them all.@natures = [{ filename => "h.ll", criterion => qr/blasphemer/, handle => undef # this line not actually needed }, ...
Hey, wait, you could even have some kind of object encapsulating that hash, and let an object method do the match. But that starts to sound like Mail::ListDelivery/ Mail::Audit::List.
|
|---|