Hello,
I did say my PERL programming skills were limited !
I have it sorted now, many thanks for your help.
One thing that was also causing an issue (which I had not been informed of) was the fact that the hierarchy is actually broken anyway :-( No one even mentioned that this would be the case.
SlackyB (aka Doofus)