in reply to grep equivalent in perl
But that's not the same as the key question in your narrative; namely "how do I ' grep without opening the files...'?"
At least as I understand it, that translates to "I want to read something (inside) files without opening the file."
Better to try for an answer to that at Magic_Monks or Sorcerers,Inc.
So, looking for another approach involving Perl, and assuming you meant -- in your second sentence -- either (less likely:) 'these are close to a million large files' or (more likely, I guess1) 'These files contain close to a million lines each':
|
|---|