($opt_v) && print "Doing such & such a task\n";
to help me debug. (There are other ways to do this, also.) However, the -w will give errors that the $opt_v variable is only being used once, even if called this way multiple times. To get rid of that particular error, one can add the following to the top of the script:
I would only add this later in the development of the script, because it can also mask legitimate warnings about about variables being pointlessly assigned a value and never being used again (such as if there is a typo).