Thanks for your reply! How do I get the input in? The file is in the same folder and thus far I have only learnt how to work from standard input using a while loop e.g.
while ($line =<>); etc.
I cannot see where the input is coming from? Apologies for my lack of understanding!!!!