On Sun, Oct 28, 2012 at 1:17 PM, Chanan Berler <[email protected]> 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.
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to