Ben,
Thanks for the great help. You understood my problem and I took your advice of substituting a <br> for the CR/LF and have the script working. Many thanks, Simon
My pleasure - and welcome to the monastery, btw. A couple of minor points that might also help - you need to use < and > in order to display an html tag, like that <br> there...and don't fret about Abigail-II's 'express yourself properly boy!' answer - you got off lightly. :) Do have a wander around the halls though and check out the PerlMonks FAQ section on effective questioning - the hardest thing to do here is have to parse a question before being able to understand / answer it :).