Hi PerlMonks,
I want to open one file, look for multiple lines of text blocks that are repeated and write these to seperate files.
So if we have four blocks of text starting with the word 'Experiment' and ending with the word 'Reagent Lot', I would like to write each block of text to four seperate files.
What I want to do is
open the file
look for my first repeated block
save this first repeated block to a variable (which is best?)
open the first output file
write the code to this file and close it
repeat to end of file
Does anyone have a suggestion as to how best to go about this?