For things this small I often don't even use strict and never use lexicals unless I know I need scoping for something. Of course if it turns out that it doesn't immediately work right then I put all the goodies into place and do it the right way which for me means warnings are fatal as well. Usually the warnings show what I was doing wrong, the strict just forces me to be pedantic.
use strict; use warnings FATAL => 'all';
In reply to Re: 'global' variables in small scripts -- a question of style?
by diotalevi
in thread 'global' variables in small scripts -- a question of style?
by Tomte
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |