I've been studying this sample code that someone gave to me in response to one of my earlier queries. Why is it not necessary to put a "&" in front of DBH in the statement DBH->prepare?
Thanks, Siegfried use strict; use warnings; use DBI ; use Data::Dumper; our $dbh; sub DBH{ unless ( $dbh && $dbh->ping ) { $dbh = DBI->connect ( 'dbi:mysql:dbname=hotjobs', 'root', 'secret' ) ; die DBI->errstr unless $dbh && $dbh->ping; } return $dbh; } my $sth = DBH->prepare ( qq { SELECT * FROM jobtitle WHERE sJobTitle = '$sJobTitle' } ); -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>