Works as far back as I can remember. On Tue, 22 Jul 2008 02:57:59 -0500 [EMAIL PROTECTED] wrote:
> that only works in 5.10 right? > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Will Willis > Sent: Monday, July 21, 2008 10:24 PM > To: Houston.pm located in Houston, TX. > Subject: Re: [pm-h] July Meeting > > > let the golf begin :) > > $vote ||= 'maybe'; > > -Will > > > On Mon, Jul 21, 2008 at 3:28 PM, <[EMAIL PROTECTED]> wrote: > > > or... $vote = "maybe" if (!$vote); > > empty strings and undef are both is false for truth testing. > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:houston-bounces+todd.e.rinaldo > <mailto:houston-bounces%2Btodd.e.rinaldo> [EMAIL PROTECTED] On > Behalf Of Michael Dickens > Sent: Monday, July 21, 2008 11:54 AM > To: Houston.pm located in Houston, TX. > Subject: Re: [pm-h] July Meeting > > > > thanks, it was that simple. > > > On Mon, Jul 21, 2008 at 11:42 AM, Robert Boone <[EMAIL PROTECTED]> > wrote: > > > It maybe as simple as changing == to eq > > > > > > On Jul 21, 2008, at 11:34 AM, Michael Dickens wrote: > > > > Hello all. I live in Pearland and I have been following your group > for a while and want to see if you can help me with a problem I am > having. > > I am retreiving data from mysql using DBI here is the code > > while ( ($id, $vote) = $sth->fetchrow_array() ) { > $vote = "maybe" if vote == ""; > print "$id\t$vote\n"; > } > > but when I do this, all the vote records retreived are changed to > 'maybe' instead of just the ones that match "". > Can I use a conditional statement on the values retreived from mysql? > > here is what is in mysql > id | vote > 1 | no > 2 | NULL > 3 | yes > > > thanks > Michael > > > > _______________________________________________ > Houston mailing list > [email protected] > http://mail.pm.org/mailman/listinfo/houston > Website: http://houston.pm.org/ > > > > > _______________________________________________ > Houston mailing list > [email protected] > http://mail.pm.org/mailman/listinfo/houston > Website: http://houston.pm.org/ > > > > > -- No, no, you're not thinking, you're just being logical. -- Neils Bohr _______________________________________________ Houston mailing list [email protected] http://mail.pm.org/mailman/listinfo/houston Website: http://houston.pm.org/
