in reply to Re^2: Write to multiple files according to multiple regex
in thread Write to multiple files according to multiple regex

aha. i just noticed. it does not work. using the really big file gives me an "out of memory" after a few seconds. maybe I used it the wrong way?

update: it must be "END" not "^END". with "^" it just prints everything from first match to the end of the file. however if i use

$/ = 'END';

it prints the first match (correctly) and (meanwhile) to the correct file, but it stops parsing afterwards.