<div dir="ltr"><br><div class="gmail_quote">On Sun, Oct 28, 2012 at 11:35 AM, 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">
Hey All,<br>
<br>
Quick question: when running perl -c DAL.pl i don't see any errors in<br>
my code, unless I am create an object out of DAL.<br></blockquote><div><br>By running "perl -c <a href="http://file.pl">file.pl</a>" or "perl -wc <a href="http://file.pl">file.pl</a>", you only compile the code to see that it's syntactically correct, which it is.<br>
Creating a new object is run-time and might contain unintended behavior, rather than incorrect syntax.<br>It's impossible to know why the error happens if you don't tell us:<br>1. What code you're running.<br>
2. What error you're receiving.<br><br>We're not psychics yet. :)<br><br>Specifically in your code it would appear that your new() method gets a hash reference and copies something from one key to another.<br>Are you running it correctly?<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Q: is there a way to find these kinda syntax errors ?<br></blockquote><div><br>Yes, write tests! :)<br></div></div></div>