in reply to Re: Re: pushing individual rows of return (DBI) into seperate arrays
in thread pushing individual rows of return (DBI) into seperate arrays
Hi peppiv,
Like everyone else, at some time or other, I have been bitten by this. I have noticed lately around the monastery some people using the idiom
if ( 1 == $row ){ ... }
the reason being that if ( 1 = $row ){ ... } would yield an error. ( Can't modify constant item in scalar assignment )
My first impression was that the construct was ugly, and counter-intuitive, but I feel my opinion changing. I haven't included it in any code, yet, but who knows what the future will bring? :-)
Does anyone have any thoughts on whether the use of this construct should be encouraged?
thinker
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: pushing individual rows of return (DBI) into seperate arrays
by kesterkester (Hermit) on Aug 29, 2003 at 13:00 UTC | |
Re: Re: Re: Re: pushing individual rows of return (DBI) into seperate arrays
by hmerrill (Friar) on Aug 28, 2003 at 19:55 UTC | |
by menolly (Hermit) on Aug 28, 2003 at 21:34 UTC | |
by bean (Monk) on Aug 29, 2003 at 01:45 UTC |