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


in reply to Re^3: Splitting a large file into smaller files according to indexes
in thread Splitting a large file into smaller files according to indexes

As an example of where the above program may go wrong, consider what happens if mrule=140 appears in two different parts of your log file - NOT consecutively, i.e. another mrule line is in between. The last time's contents will overwrite the first time's contents!

bliako
  • Comment on Re^4: Splitting a large file into smaller files according to indexes
  • Download Code