in reply to Re^2: Write to multiple files according to multiple regex
in thread Write to multiple files according to multiple regex
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.
|
|---|