Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: xs modifying passed value

by bulk88 (Priest)
on Nov 17, 2012 at 22:55 UTC ( #1004357=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    int 
    MyLib::strToInt(passfailSV)
    ...
        SvSetMagicSV(passfailSV, passfail ? &PL_sv_yes : &PL_sv_no);
    OUTPUT:
        RETVAL
    
  2. or download this
    T_BOOL
        $arg = boolSV($var);
    
  3. or download this
    /*
    =for apidoc Am|SV *|boolSV|bool b
    ...
    */
    
    #define boolSV(b) ((b) ? &PL_sv_yes : &PL_sv_no)
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2015-07-31 21:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (282 votes), past polls