try COM please.like this:$mycom = new COM ("mycom.myclass name") or die ("error");