in reply to Re: portability!
in thread portability!

A compiled C program is very different from a running perl program.

To try to help clarify your 2nd question a bit more: It is my understanding that, in general, C programs are "compiled" into an executable, whereas Perl scripts are "interpreted" at runtime--each time the script is run (this would not include the executable Perl programs swiftone mentions, I'm assuming). Hence the differing terms, C program and Perl script. Although this adds to the runtime overhead, it makes debugging nicer in Perl since you don't have to re-compile the whole program after every little change. (Please correct me if I'm wrong, though, as I'm still learning Perl and would welcome any chance to improve my understanding)

Replies are listed 'Best First'.
RE: RE(2): portability!
by swiftone (Curate) on Oct 14, 2000 at 00:22 UTC
    C programs are "compiled" into an executable, whereas Perl scripts are "interpreted" at runtime

    Actually, I believe that perl scripts have a sort of "pre-compile" step. This is where BEGIN{} blocks and use statements and other such pre-runtime things are decided. Though this normally happens at the first step of running the program (not true in cases like mod_perl), this step is normally refered to as "compiling"

    As for script versus program, from the perlfaq1:
    Is it a Perl program or a Perl script?

    Larry doesn't really care. He says (half in jest) that "a script is what you give the actors. A program is what you give the audience."

    (More available in the faq)