No such thing as a small change | |
PerlMonks |
Re: Re: Re: pushing individual rows of return (DBI) into seperate arraysby thinker (Parson) |
on Aug 28, 2003 at 19:43 UTC ( [id://287504]=note: print w/replies, xml ) | Need Help?? |
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
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 Section
Seekers of Perl Wisdom
|
|