<div dir="ltr"><div class="gmail_quote">On Sun, Oct 28, 2012 at 1:17 PM, Chanan Berler <span dir="ltr"><<a href="mailto:bc.other@gmail.com" target="_blank">bc.other@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Example of syntax bareword error (or like):<br>
note the "aaaa" i have added...using perl -c DAL.pl no error is found,<br>
however if I use aaaa; error found :(<br></blockquote><div><br>That's because "use" statements are actually compile-time statements. They are run *before* and *regardless* of other run-time statements.<br><br>
When you do "perl -wc <a href="http://file.pl">file.pl</a>", 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.<br>
</div></div></div>