Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

The easy way to write XS code and work with Perl varaibles directly from C. (New resources on Class::HPLOO).

by gmpassos (Priest)
on Mar 07, 2005 at 21:16 UTC ( #437318=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
      use Class::HPLOO ;
    ...
          
      }
    
  2. or download this
    
    package Point ;
    ...
    
    1;
    
  3. or download this
    
      use Class::HPLOO ;
    ...
      }
    
  4. or download this
        sub[C] void move_y( SV* self , int mv_y ) {
          int y = self->{y}->int + mv_y ;
          self->{y} = int2sv(y) ;
        }
    
  5. or download this
        sub[C] SV* get_xy_ref( SV* self ) {
          AV* ret = newAV() ; // create an array.
    ...
          
          return \{ret} ; // return a reference to the array.
        }
    
  6. or download this
    
        sub[C] SV* get_xy_ref( SV* self ) {
    ...
          return newRV_inc( ret ) ;
        }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://437318]
Approved by kvale
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2020-07-05 01:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?