anthony wrote:

> ...
> $name = $dbh->("$name");

Anthony, please pay attention to the advice you have already been given.  People
do take valuable time to answer your posts, and I know that you have been
reminded that there is no benefit to be derived from quoting variables as you
have in the function arguments above.

> $text   = $dbh->("$text");

> I get an error it says it is not a CODE.**and i use $dbh to connect to
> database, so it is valid**

Neither dbh nor any other module is a magic wand that turns apples into
elephants..  The interpreter is telling you that it sees an attempt to assign a
code reference to a variable, and that it does not see the code for the function
'' [or double-quoted, the function ""], which is what you are telling it to look
for.

It could be that you have a bad editor.  Does your code editor clearly show the
difference between (} and {}?  It is not a casual distinction.  Parentheses
following an identifier imply a function call.  Braces [aka curly brackets]
indicate a hash dereference.  I suspect you want the latter.

Joseph



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to