Next | Program Repair Shop | 75 |
18 my ($pwd,$i)=($_[0],$i++);
This is noteworthy for another reason:
13 &xcopy($source_directory,$target_directory);
That second argument is never used
The function only works because it happens to be in the scope of $target_directory
If it were in a different file, it wouldn't work
$target_directory is effectively a global variable here
(Note to use strict freaks: use strict will not help here)
Next | Copyright © 2002 M. J. Dominus |