You can yes, but it's not a trivial excersise. Have a look in the documentation for XS, that's the mechanism people use.
Alternatively - and potentially much more simply - can you write a C program that does the job you want and the returns results to the Perl script? Mike
________________________________________________________________
"Experience is the comb that Nature gives us, after we are bald."
Is that a haiku?
I never could get the hang
of writing those things.