thanx for the advice, I used the double colon method and assign the package variable to a local variable. However, it still didn't work. Then I change "use test" to "require("test.pm")" and it worked... thanx
But this is still very magical, kinda confusing...