1) I think your best bet would be to look at the documentation for the module whose object $dbh is. What the method returns should be in there.
2) Look at eval. You should be able to read in the text and use eval{} to interpolate your variables. -----Original Message----- From: Mat Harris [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 4:13 PM To: [EMAIL PROTECTED] Subject: variable behaviour question and including files 1){ If say something like: my $profile = $dbh->selectrow_hashref("SELECT * FROM users WHERE username = '$username' AND password = '$password'"); and the SQL query doesn't return anything, will $profile be defined or undefined? } 2){ I want to keep large chunks of html outsite my main scripts but so they can be accessed, and brought in just to print to STDOUT. I have tried keeping them in individual html files then doing while (<HTMLFILE>) print; } but I also need parts of the html to be perl scalars relying on values from the main script. Is this possible? You see I want to keep my main script as free of html as possible for portability's sake. cheers -- Mat Harris OpenGPG Public Key ID: CC14DD34 [EMAIL PROTECTED] www.genestate.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]