in reply to Re^3: Write to multiple files according to multiple regex
in thread Write to multiple files according to multiple regex
I dropped the ../^END/ to play with the $/ operator. Not working yet though. Before that I hadprint {$filehandles[$i]} $line if $line =~ /$regex[$i]/;
which redundantly wrote all (correct) lines to the last (not the correct) filehandler.print {$filehandles[$i]} $line if ($line =~ /$regex[$i]/../^END/);
|
|---|