Thanks for this. I've changed the $fh thingy to what you've suggested. it makes more sense in the code to read...
I guess the answer is "you have problems dereferencing".. looks like i may have to read more.
this will end up a part of a web application, so i dont think the speed hit is really an option.. ;-)
thanks again ++ for you.