in reply to Don't re-read file for each new pattern...
the file's content is kept in @strings and the pattern match is done on @strings each time without re-reading the file.
Enjoy,
Mickey
In Section
Seekers of Perl Wisdom
in reply to Don't re-read file for each new pattern...
Enjoy,
Mickey