switch perl package building method