DEV Community


Discussion on: Programs to Compute Trig Functions in Python, JavaScript, & Perl (with Maclaurin Series)

matthewpersico profile image
Matthew O. Persico

Also, by adding use strict; at the top of your Perl code, you will get some errors about undefined vars. Just add mys in the appropriate places and you'll be fine. Always include use strict; in addition to use warnings;. It will catch unintended overlapping global usage of variables, which is a bear to debug, especially as the code gets longer. Again, excellent article.