Great, thanks for the quick reply. I have tried converting it into an array and it seems to work pretty well, although i'm a bit unsure about putting the elements into variables and passing them to another subroutine.
Any help with this would be appreciated
thanks
Simon