|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Why you should use strictby waxmop (Beadle) |
| on Jun 27, 2003 at 16:06 UTC ( #269642=perltutorial: print w/ replies, xml ) | Need Help?? |
|
After you've gotten fairly comfortable with perl, I strongly recommend you always load the strict module in all your programs. Putting use strict; at the top of your programs will tell perl to slap your hands with a fatal error whenever you break certain rules. And just like the rules against playing on the roof or freebasing crystal meth, those rules are there to help you. This code shows some of the weird and scary places you can end up if you don't do use strict; in your programs. After you understand it, uncomment the use strict; line and watch what happens when you run the script again.
Edit by tye, remove PRE from around CODE
Back to
Tutorials
|
|
||||||||||||||||||||||||||||||