sub autosplit_lib_modules{
my(@modules) = @_; # list of Module names
- foreach(@modules){
+ while($_ = shift @modules){
s#::#/#g; # incase specified as ABC::XYZ
s|\\|/|g; # bug in ksh OS/2
s#^lib/##; # incase specified as lib/*.pm
sub autosplit_file{
my($filename, $autodir, $keep, $check_for_autoloader, $check_mod_time) = @_;
my(@names);
+ local($_);
# where to write output files
$autodir = "lib/auto" unless $autodir;