Skip Menu |

This queue is for tickets about the CGI-Wiki CPAN distribution.

Report information
The Basics
Id: 2003
Status: resolved
Priority: 0/
Queue: CGI-Wiki

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.15
Fixed in: (no value)



Subject: CGI::Wiki::Search::DBIxFTS search_nodes pod flub
The pod for search_nodes gives the following example # Find all the nodes which contain any one of the form-supplied # search terms. %results = $search->search_nodes($q->param('terms'), 'OR'); Which would confuse anybody who's used CGI.pm, since param is context sensitive (I had to go source-diving) perl -MCGI=param -e die(param(1),2) 1=a 1=b 1=c That example should be modified to say %results = $search->search_nodes(scalar $q->param('terms'), 'OR');
[PODMASTER - Wed Jan 29 06:07:07 2003]: Show quoted text
> The pod for search_nodes gives the following example > > # Find all the nodes which contain any one of the form-supplied > # search terms. > %results = $search->search_nodes($q->param('terms'), 'OR'); > > Which would confuse anybody who's used CGI.pm, since param > is context sensitive
Cheers, I'll change it in the next release to my $terms = $q->param("search"); my %results = $search->search_nodes($terms, 'OR'); which is what I think I had originally. Or maybe I'll just completely leave out tying the example in to CGI. This probably isn't a big enough change to do another release for it on its own. Any other pod bug reports and/or patches gratefully accepted. Kake