Sorry, I'm new to file handling in perl and wasn't sure how to create files and write to them. Not sure either how to make the new files' filenames because they'd have to be say the newfile + a number that is incrementing for example (they can't all be the same).
Thanks in advance for your help. Matt.