Hmm, is it just me, or does that not quite look right? Mabey I'm looking at it out of context, but you usually don't want to declare it with 'my' and use it at the same time, that implies that it already has a value. I think I've had perl complain at me more than once for attempting to 'my' a variable that already existed. (And complain at me for forgeting to my a variable when it comes into existance under strict...)
I could be mistaken though.
"Wierd things happen, get used to it"
Flame ~ Lead Programmer: GMS
http://gms.uoe.org