in reply to problem ..related to perl package concept
It doesn't really have anything to do with packages, it comes down to the difference between $var and var. You need a $ on the second one too...