7 my $index_dir = './index';
8 my $docus_dir = './docs';
10 unlink <$index_dir/*>;
11 find
({ wanted
=> \
&index_file
, no_chdir
=>1 }, $docus_dir);
14 print $File::Find
::name
."\n";
15 open(my $fh, '<', $File::Find
::name
) or die $!;
17 $_ =~ s/\<[^\<]+\>//g; #strip tags
20 foreach(split(/[\s]/,$_)) {
21 $_ =~ /^\s+|\s+$/g; #trim
22 if($_ eq '') { next; }
26 $_ = $index_dir.'/'.$_;
28 open(my $ifh, '>>', $_) or die $!;
29 print $ifh "$File::Find::name\n";
This page took 0.875916 seconds and 4 git commands to generate.