Commit 35b5dde
authored
Reduce the number of globals
* Global variables Attributes-hash, Attributes-scalar and Dirs-list names were aliased within subs; found by perlcritic
* Move declarations of some globals into the logical main-block; these don't have to be global
* Globals Arg-scalar, Attributes-scalar and DirEntries-list are unused so they disappear
* Regression test: cd ~/PerlPowerTools/bin && perl ls -1R .. | md5sum1 parent 04d90b4 commit 35b5dde
1 file changed
+6
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | 111 | | |
117 | 112 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | 113 | | |
122 | 114 | | |
123 | 115 | | |
| |||
509 | 501 | | |
510 | 502 | | |
511 | 503 | | |
512 | | - | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
513 | 510 | | |
514 | 511 | | |
515 | 512 | | |
| |||
0 commit comments