I assume you are using C for the speed advantage. And while
there are ways to turn Perl code into C code, you are not
gaining any speed advantage that way.
The usual port from Perl to C goes via a text editor.
Abigail
Comment on Re: Re-using Perl script into compiled programs