in reply to Re: Why this problem in MethodMaker ?
in thread Why this problem in MethodMaker ?

Hi chromatic !

Giving my($self, $val1, $val2) = @_ ; within a method inside Methodmaker is not working.. In the same context, Any method that takes two arguments can't be defined inside MethodMaker unless , otherwise we use array or an hash.. Why is that so ?? For example i hav a method called 'save' defined inside a MethodMaker and when i called this method like this ...

$object->save($name,$id);
Value of name is alone returned and id's value is null...

Thanks Vishi