Hi Feherke,
Thanks for you reply, I'm just getting to grips with perl so my code is more than likely far from perfect ;)
Ideally I'd like to put everything within the perl file so all i pass through the command line is the name of my perlscript and the input and output files.
I've attempted...