5 my ($top,$base,$dest) = @_;
6 my $d = new DirHandle $base;
8 while (defined($_ = $d->read)) {
11 my $entry = "$base\\$_";
12 my $entrywithouttop = $entry;
13 $entrywithouttop =~ s/^$top//;
14 if (-d $entry) {splitthis ($top,$entry,$dest);}
16 next unless ($entry=~/pm$/i);
17 #print "Will run autosplit on $entry to $dest\n";
18 autosplit($entry,$dest,0,1,1);
24 splitthis $ARGV[0],$ARGV[0],$ARGV[1];