Thanks,
Yes I normally do use strict, however I started this one from a very old copy of a script I did many years ago.
I tend to only come back to perl every few years as needs arise so the dereferencing throws me off sometimes. (especially after midnight and a long day at work!)
Thanks again; great quick replies greatly appreciated.