Next | Program Repair Shop | 193 |
In delfiles.pl we have:
if ($#files > -1) { ... }
The -1 here is totally artificial
What is really meant is to ask if there are any matching files
if (@files > 0) { ... }
Or, briefer and perhaps even clearer:
if (@files) { ... }
Next | Copyright © 2002 M. J. Dominus |