]> granicus.if.org Git - fortune-mod/commit
Avoid predeclaring variables and localize their decl.
authorShlomi Fish <shlomif@shlomifish.org>
Wed, 29 Apr 2020 07:50:44 +0000 (10:50 +0300)
committerShlomi Fish <shlomif@shlomifish.org>
Wed, 29 Apr 2020 07:50:44 +0000 (10:50 +0300)
commite4ea735caf9562e33c93f67d1ba2fce2f29e34fb
treed5e1b1d127e14775f97ccd96684b8c9da10f0bad
parent2c89259fc5aae17f65f08fc76d99fa950562b68a
Avoid predeclaring variables and localize their decl.

See:

* http://perl-begin.org/tutorials/bad-elements/#declaring_all_vars_at_top

* https://en.wikipedia.org/wiki/Perl_Best_Practices
fortune-mod/util/strfile.c