From: Stuart G. <st...@sm...> - 2000-12-15 16:51:42
|
I'm trying to write a module to allow Misterhouse to send SMS messages. I've got it all working, but I'm just trying to put it in a module for MH. I have a module in misterhouse/lib called SMS_Item.pm and the package is called SMS_Item. There is a function in there : sub new { my($class=shift(@_)); my($self) = {}; $$self{country} = shift(@_); $$self{number} = shift(@_); bless $self, $class; return $self; } based on Generic_Item's sub new. But when I try and create an instance of my object, I get "Cant locate object method new via package SMS_Item" I'm trying to create it with $smsmsg = new SMS_Item(44, "mobile number"); -- ,,, (o o) ===========================oOO==(_)==OOo============================== Stuart Grimshaw www.schoolsnet.com sg...@sc... Special Projects Developer t: 07976 625221 Schoolsnet LTD .oooO Oooo. f: 0870 7060260 ===========================( )==( )=============================== \ ( ) / \_) (_/ |