use threads::shared; $HS = new Something(); share($HS);