in reply to Re^2: Can't call method "KEY_READ" on an undefined value
in thread Can't call method "KEY_READ" on an undefined value

Okay, so during debugging I tested $Registry only to find it was undefined at the point I needed it. I tried wind's suggestion and set $Registry to our $Registry and hey presto it is no longer undefined.

IT WORKS! So now I have to look into the our keyword a bit more. There's something I've missed. Thanks for the help.