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
In reply to Re: Re: Re: pushing individual rows of return (DBI) into seperate arrays
by thinker
in thread pushing individual rows of return (DBI) into seperate arrays
by peppiv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |