]> granicus.if.org Git - fortune-mod/commit
Avoid predeclaring variables and localize their decl.
authorShlomi Fish <shlomif@shlomifish.org>
Wed, 29 Apr 2020 08:30:11 +0000 (11:30 +0300)
committerShlomi Fish <shlomif@shlomifish.org>
Wed, 29 Apr 2020 08:30:11 +0000 (11:30 +0300)
commit56d15c0d31d1332673e52225e7aaf37d43033317
tree11fbb10d29647add05a4088fd6d6bebec83dc563
parent26562b40c6bf2dc81caa191a572b282300b9327f
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