Eric, My code is for data processing and is mainly in Perl, but I have several subroutines written in C for parsing and collecting statistics for faster speed than in Perl. So basically, there is a long work flow of processing data, but several function calls are made to the C subroutines here and there.
I am not sure how to do it in the way you just suggested. Can you enlighten me a bit, in terms of using separate C and Perl modules? Thanks! Steven -----Original Message----- From: Eric Wilhelm [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 6:37 PM To: [EMAIL PROTECTED] Subject: Re: How do I disable modules in a script # The following was supposedly scribed by # Wu, Gang \(Steven\) # on Thursday 25 March 2004 07:15 pm: |My Perl code has more than 1,000 lines (maybe I shouldn't have used Perl |to code this many lines), and that is why I am hesitant to put all the |code in the "if ($@)" block. That is a very good way for shorter |scripts, though. 800 lines is a good length for a module Is it possible to write one module that uses the inline::C code, and another that is pure perl? If so, you could bring in the function definitions from the C module and / or the pure-perl module using requires in the BEGIN{} block. What is the difference between having Inline::C and not having it? That's really what you have to answer if you want a program to run under both cases. --Eric -- "But as to modern architecture, let us drop it and let us take modernistic out and shoot it at sunrise." --F.L. Wright