ColoTotals::init(); You can do: use ColoTotals; init();