Yes, of course. In your combined script, instead of printing each line of matches, simply push them onto @matches. There is no need to write them out and then read them in again.
🦛
In reply to Re^3: Counting matches and removing duplicates
by hippo
in thread Counting matches and removing duplicates
by LexPl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |