----- Original Message -----
From: "Gregg Allen" <[EMAIL PROTECTED]>
.
.
.
(In comparison, the median XS program is hundreds of times faster.)
You mentioned Statistics::Descriptive - which, I believe, is pure perl.
What/where is this "median XS program" ? (Or is that just another way of
saying "Inline::C program" ?)
So what's the correct way to have a Perl program pass some "@array" to an
inline C program, do its voodoo, and return the value at the percentile
value I requested?
See the "Variable Argument Lists" example in 'perldoc Inline::C-Cookbook'.
You don't *have* to pass the arguments that way. You can alternatively pass
(from perl) a reference to "@array", and receive the argument (on the C
side) as either an SV* or an AV* (though I don't think there are examples of
this in the Cookbook).
In terms of performance, I don't think it matters much which way you go
about it.
Cheers,
Rob