[Israel.pm] Error in compilations - not found
xsawyerx at gmail.com
Sun Oct 28 05:13:49 PDT 2012
On Sun, Oct 28, 2012 at 1:17 PM, Chanan Berler <bc.other at gmail.com> wrote:
> Example of syntax bareword error (or like):
> note the "aaaa" i have added...using perl -c DAL.pl no error is found,
> however if I use aaaa; error found :(
That's because "use" statements are actually compile-time statements. They
are run *before* and *regardless* of other run-time statements.
When you do "perl -wc file.pl", it will run all the "use" statements to
make sure that the modules the code uses are available. That's part of the
compiling procedure and therefore it's part of the compile-time check.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Perl