sub lookup {
my $infile = "locs.txt";
my $href;
$table = "
| Path | Size | Modified |
";
open(F, "+< $infile");
while () {
($filename, $cms, $path, $size, $day, $time) = split /,/, $_;
if (index($filename, $to_find) > -1) {
$href = "file:\\\\netd\\data".$path."\\$filename";
$href =~ s/\s/%20/g;
$table .= "| $path\\$filename | $size | $day $time |
";
}
}
close(F);
$table .= "
";
$table =~ s/"//g;
}