#!/usr/bin/perl # # NAME # TuneFind # # SYNOPSIS #
\n"); chdir $ndxdir; chomp($cwd = `pwd`); &lsend("Changed to $cwd\n") if $V>1; @files = glob('??.html'); file: for $file (@files) { if (!open(F,$file)) { &send("File: \"$file\" Can't read ($!) \n"); next file; } &lsend("file: $file\n") if $V>2; line: for $line () { if ($pat && ($line =~ /$pat/i)) { &matched($line); } else { &lsend("-: $line") if $V>4; } } } if (@match) { $matches = @match; &send("