http://www.perlmonks.org?node_id=539861


in reply to Re^2: dynamic zcat and grep
in thread dynamic zcat and grep

Well, I'm not in a position to test it myself, so I have to ask you: Have you tried running it, and does it do what you want?

As for improvements, I can think of several, but if the script works, these are less than crucial -- well, except for the fact that you really should include "use strict", and learn about scoping variables.

Apart from that, in no particular order:

Well, enough for now. Good luck with the rest.