Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

xs modifying passed value

by Festus Hagen (Novice)
on Nov 17, 2012 at 11:03 UTC ( #1004300=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    int 
    MyLib::strToInt(passfail)
    ...
    OUTPUT:
        RETVAL
        passfail
    
  2. or download this
    my $passfail = 0;
    my $tmp = MyLib->new("12");
    my $t = $tmp->strToInt(\$passfail);
    print "It's $t\n" if $passfail eq 1;
    
  3. or download this
    It's false in xs. 0
    It's true out xs. 1
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1004300]
Approved by Perlbotics
Front-paged by bulk88
help
Chatterbox?
[Corion]: Hurr - use lib glob '/opt/perl/foo*'; - I'm not really sure if that is sane ;-D

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2017-01-19 15:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.