the_slycer has asked for the wisdom of the Perl Monks concerning the following question:
The search tool shows (as is obvious from above) the whole line that the search value was found on.foreach $filename(@file_array){ chomp ($filename); open (FH,"$filename") or warn "Could not open $filename $!"; while ($line = <FH>){ if ($line =~ /.*$search_value*/i){ ++$matched; $file_listbox->insert('0',"$filename--> $line"); open (RECENT,">>$installpath/recent"); print RECENT "$search_value= $filename--> $line"; $numhash{"$search_value"}="true"; close (RECENT); } } close (FH); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Faster way?
by Fastolfe (Vicar) on Oct 06, 2000 at 22:08 UTC | |
by extremely (Priest) on Oct 07, 2000 at 02:31 UTC | |
by the_slycer (Chaplain) on Oct 06, 2000 at 22:21 UTC | |
by Fastolfe (Vicar) on Oct 06, 2000 at 22:27 UTC | |
by the_slycer (Chaplain) on Oct 06, 2000 at 23:37 UTC | |
by Fastolfe (Vicar) on Oct 06, 2000 at 23:54 UTC | |
|
Re: Faster way?
by jreades (Friar) on Oct 07, 2000 at 00:36 UTC | |
|