[Israel.pm] Error in compilations - not found

sawyer x 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...
URL: http://mail.perl.org.il/pipermail/perl/attachments/20121028/731ea909/attachment.htm 


More information about the Perl mailing list