I have found that rather than "use warnings"
you may wish to just use the -w in the command line when testing your script.
It seems to become more of an acceptable option
when first starting out and you are still muddling
through the process.
I sometimes get so many warnings (I didn't say I was good)
that I can't see the output through the forest.!