Dear Ed,
Ed Wright wrote:
Thank you for your informations, it seems to me I have to do the same way. The most interesting things to me is where perl stores
On Sep 1, 2004, at 7:18 AM, Reinhard Pagitsch wrote:
Dear all,
I am searching for a good tutorial, book for the XS programming under Perl for beginners.
Does anyone know about?
Sure I looked about perlxs, perlxstut and the other which are comeing with Activestate Perl,
but I have problems to find the informations I am looking for, because they are on different places.
I think I am spoiled </?p=14/p..&search=spoiled> by the M$ documentation, which seems to me much plainer.
For the most part, XS programing requires learn by doing. I used "Extending and Embedding Perl" as a reference for my first XS project, but found the book soft in the "how do I do this now" sense. I ended up scouring the web for examples, pass an int, receive an int, pass a double, receive a double.
The book is more useful to me now that I have XS experience. I do suggest you obtain a copy. It includes documentation difficult, if not impossible, to find anywhere else.
XS _return_ values and how to capture it from the .pm module.
e.g: I have a XS function which shall return a hash to my .pm. I saw in the module from Glen Small (Win32::PerfMon) that there
will be passed a variable to the XS function which holds error message if any. But the function it self does not return the performance data
of a process, but it worked I can capture specific data from a added performance counter. So I am very confused how the .pm
method know the data captured by the XS function.
I wrote a XS module which capture all running win32 processes and put them back in a hash, I belived. But in real it was an
Array containing the hash with the names and PID's.
May I send you my XS source and than you would be so kind to explain my code and tell me all necessary improvements?
(I plan to upload it to CPAN)
mit freundlichen Grüßen, with my best regards, Reinhard
-- QA ISIS Information Systems Austria tel: (+43) 2236 27551 150 Fax: 2236 21081 Visit our web site http://www.isis-papyrus.com