Yea I dont use strict and warnings because I dont know how to resolve what its complaining about.
Ah, that's even more of a reason to use them! If you get errors/warnings that you're not sure what they mean:
- use diagnostics; to get explanations.
- Check perldiag (these are the same ones that diagnostics prints, I think).
- Use the Monastery's Super Search, and/or your favorite web search engine.
- If you're still not sure, ask a new question on PM!
You'll learn a lot this way, your Perl will improve, and your scripts will have fewer bugs/unpleasant surprises.
There's also a book, TheDamian's Perl Best Practices, that may be of interest. It's a bit older by now, but it's got a lot of good advice.
| [reply] |