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       

Attachment: msg29138/pgp00000.pgp
Description: PGP signature

Reply via email to