SPUG: perl's sticky lvalue bug
Sean Ruddy
Sean at DigiDot.com
Tue Aug 1 10:38:48 CDT 2000
Found this on another list:
http://www.geocrawler.com/archives/3/183/1998/2/0/1015933/
FROM: Tim Bunce
DATE: 02/27/1998 04:04:59
SUBJECT: RE: unwarrented bind errors ?
*** From dbi-users -- To unsubscribe, see the end of this
message. ***
> From: Phil R Lawrence < prl2 at Lehigh.EDU >
>
> AIX, DBD::Oracle, DBI 0.90
>
> First error:
> -> execute for DBD::Oracle::st
(DBI::st=HASH(0x20201810)~0x20201798
> `ERIUHRE8O7` `AND coll = AS`)
> Uncaught exception from user code:
> Can`t bind non-scalar value (currently) at
./cobolrepl.pl line 150,
>
> Code is not trying to bind a non-scalar!
Sort of. It`s probably perl`s "sticky lvalue" bug getting in the
way.
(Worked-around in the next DBD::Oracle release.)
> try saying $sth1->execute(scalar $letr, scalar $coll_sql)
or do the same
> thing on another line and it *still* gives same error.
Try saying $sth1->execute("$letr", "$coll_sql");
Tim.
To unsubscribe from this list, please visit
http://www.fugue.com/dbi
If you are without web access, or if you are having trouble with
the web page,
please send mail to dbi-request at fugue.com . Please try to use
the web
page first - it will take a long time for your request to be
processed by hand.
Doug Beaver wrote:
> On Tue, Aug 01, 2000 at 01:20:44AM -0700, Mathew Mills wrote:
>
> > I recently came across a nasty little problem. I found a web page
> > that helped me solve the problem, explaining the cause was the "sticky
> > lvalue" bug in perl. Does anyone know what bug/behavior this might
> > refer to? There were no details given...
>
> Can you give a short code example that illustrates the problem?
>
> Doug
>
> --
> Smithers: I'm afraid we have a bad image, Sir. Market research shows
> people see you as somewhat of an ogre.
> Burns: I ought to club them and eat their bones!
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
> Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
> Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
> For full traffic, use spug-list for LIST ; otherwise use spug-list-digest
> Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For full traffic, use spug-list for LIST ; otherwise use spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
More information about the spug-list
mailing list