Hello Abigail,
Much thanks for the help. I'm just trying to get onto my Perl feet at the moment, so processing line by line is just an exercise for me. The regexp that I've put together is wrong, as you (and others) have highlighted, so I've change it to this: