Help for this page

Select Code to Download


  1. or download this
    SV * overload_add_eq(SV * obj, SV * addon, SV * third) {
         Card* c = (Card *)SvIV(SvRV(obj));
    ...
         c->value += SvIV(addon);
         return obj;
    }
    
  2. or download this
    void overload_add_eq(SV * obj, SV * addon, SV * third) {
         Card* c = (Card *)SvIV(SvRV(obj));
         c->value += SvIV(addon);
    }
    
  3. or download this
    use warnings;
    package My_struct;
    ...
    
    @members = deref_ref($obj);
    print "@members\n";