On Feb 1, 2004, at 11:51 AM, Joel wrote:


I wrote a decent, working program that actually does something semi-usefull (areaformula.pl)!!!
Check it out! You can find the area of a circle with it! Also, can someone tell me what I did wrong with modifiedarea.pl and what the error (Main::useless used only once possible typo at...)means?
 
Congratulations on your first program.

You should get in the habit of putting
use strict;
use warnings;

at the top of you code.
The first will make sure your variable names are accurate and the scope is correct. Very useful. The second will save you a lot of work when it comes to debugging bad code.


Paul kraus




Reply via email to