/[mws]/trunk/search.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/search.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (show annotations)
Tue May 4 15:47:14 2004 UTC (19 years, 11 months ago) by dpavlin
File MIME type: text/plain
File size: 416 byte(s)
added CGI interface (slow), global configuration, templates

1 #!/usr/bin/perl -w
2
3 use Data::Dumper;
4 use MWS;
5 use Template;
6
7 my $debug = 1;
8
9 my $mws = MWS->new('global.conf');
10
11 my $s=join(" ",@ARGV);
12
13 my $results = $mws->search($s);
14 print "$results results...\n";
15
16 my $t = Template->new({
17 INCLUDE_PATH => $mws->{config}->val('global', 'templates'),
18 });
19
20 my @res = $mws->fetch_all_results();
21
22 $t->process("results.txt", {
23 query => $s,
24 results => \@res,
25 }) || die $t->error();
26

Properties

Name Value
svn:executable

  ViewVC Help
Powered by ViewVC 1.1.26