Dan Anderson wrote:
>
> I'm new to Perl, and my book says that Perl can be compiled.  Does this
> mean there is a command like $ perl --compile --file ./script or does
> this just mean that instead of parsing line by line everything is
> checked for errors and then run?  (i.e. Just in Time compilation)
>

Hi Dan.

Perl comprises both a compiler and an interpreter. But the
process is rather more complicated than that, because during
the compilation phase the compiler can make calls to the
interpreter to execute code immediately (using BEGIN blocks
etc.) and during the execution phase the interpreter can
call the compiler to process dynaically generated source
(using 'eval').

For all but very esoteric purposes you can simply imagine that
your code is compiled and run by Perl. There is little use for
the output of the compiler on its own.

HTH,

Rob



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to