|Pathologically Eclectic Rubbish Lister|
xs modifying passed valueby Festus Hagen (Novice)
|on Nov 17, 2012 at 11:03 UTC||Need Help??|
Festus Hagen has asked for the
wisdom of the Perl Monks concerning the following question:
Trying to get the hang of this xs stuff and at a hump I can't seem to get over ...
Modifying a passed parameter.
MyLib is a stupid simple string class, strToInt() works correctly, both in the return value as well as modifying the passfail value.
The xs code. (with some printf's)
The Perl calling code.
The above code produces the following output:
So the xs and C code works
What the blazes am I doing wrong!