I'd only rewrite it for learning purposes.
Anyway, take a look at Meta::Utils::Hash:
DESCRIPTION This is a general utility perl library for all kinds of hash routines. + This mainly iterates hashes using the each builtin which is the fast +est to do the job and like the list library uses refernces to avoid d +uplication whereever possible. FUNCTIONS ... filter_multi($$$$) This one is a full filter. This gets: 0. a hash. 1. whether to do +filtering or not. 2. boolean indicating whether filter is negative or + positive. 3. list of modules for filtering data. And does the entire + filtering process in an efficient manner. filter_file_sing_regexp($$$) This routine receives a hash and a regular expression and returns +a hash containing only the elements in the hash which are pointers to + files which contain a the regular expression. This also receives as +the third variable whether to print the matched lines or not (this is + passes along to Meta::Utils::File::File::check_sing_regexp). ...
In reply to Re: Request opinions and ideas
by fglock
in thread Request opinions and ideas
by gnu@perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |