in reply to Perl: friend or foe ?
In addition to all of the above, there are several ways (XS, Inline::C, swig) to enable Perl code to call, e.g., compiled C code. A common technique is to structure the program so that the computationally demanding parts can be written in C (for example); the entire program then consists of a Perl "wrapper"1 and one or more native subroutines to take care of the heavy lifting. A lot of modules in CPAN use this approach.
1The term "wrapper" here is a bit misleading, because this Perl code often does substantive work other than just calling the native subroutines.
the lowliest monk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl: friend or foe ?
by MonkPaul (Friar) on Apr 24, 2005 at 14:06 UTC | |
by merlyn (Sage) on Apr 24, 2005 at 14:12 UTC | |
by tilly (Archbishop) on May 02, 2005 at 02:03 UTC | |
by MonkPaul (Friar) on Apr 24, 2005 at 14:21 UTC | |
by g0n (Priest) on Apr 24, 2005 at 14:42 UTC | |
by merlyn (Sage) on Apr 24, 2005 at 14:42 UTC |