in reply to problem ..related to perl package concept

Errrm, if you'd used strictures, they might just have spotted that mypackage::var='two'; is in error - you forgot to prefix the var name with the var type e.g. $mypackage::var='two';...

A user level that continues to overstate my experience :-))