in reply to
will not compile
Other bugs:
"'$strIn'"
is critically flawed. (What if
$strIn
contains a quote...)
$rtnVal
and
$retVal
are never declared.
Aren't
$rtnVal
and
$retVal
suppose to be the same variable?
You're using
==
for lexical comparison. Use
eq
for that.
use strict;
is probably missing
Unrequired use of a prototype. Prototypes are best avoided, so
sub trim($) { ... }
should be
sub trim { ... }
.
Sounds like you should be using placeholders (e.g.
SELECT * FROM table WHERE field = ?
) instead of writing your own quoting function.
Comment on
Re: will not compile
Select
or
Download
Code
Replies are listed 'Best First'.
Re^2: will not compile
by
kevind0718
(Scribe)
on Sep 18, 2007 at 17:30 UTC
many thanks to all of you
after a break I see those silly mistakes.
Maybe I need to take a walk or better yet a nap
kd
[reply]
In Section
Seekers of Perl Wisdom