Gossamer Forum
Home : Products : Gossamer Links : Discussions :

minor error in mod_perl startup

Quote Reply
minor error in mod_perl startup
Hi:

I get a minor error when mod_perl starts.... I get this error:

Useless use of a constant in void context at /usr/home/c/cartoon/public_html/bcdb/review.cgi line 125

The line in question reads:


my $hits = $review_db->count ( { Username => $user_name and Title => $title } );

It is just a minor thing, but I cannot see what is wrong.... any ideas?

thanks!

dave


Quote Reply
Re: minor error in mod_perl startup In reply to
Guess:

my $hits = $review_db->count ( { Username => $user_name and Title => $title } );


my $hits = $review_db->count ( { Username => $user_name, Title => $title } );


Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: minor error in mod_perl startup In reply to
Paul:

That easy? Thanks! Sometimes you just bang your head...

dave

Quote Reply
Re: minor error in mod_perl startup In reply to
Paul:

It is a beatiful thing:

Preloading Links SQL scripts into mod_perl:
. . . . . . . . . . . . . . . . . . . . . . . . . . .
All scripts compiled and loaded ok!

dave

Quote Reply
Re: minor error in mod_perl startup In reply to
Glad I could help :)

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/