develooper Front page | perl.dbi.users | Postings from February 2001

Re: Handeling undef data.

Thread Previous | Thread Next
From:
Neil Jonkers
Date:
February 22, 2001 06:00
Subject:
Re: Handeling undef data.
Message ID:
003701c09cd9$0dafb870$9e6707c4@Neil
All jedi trainees bow the the Jedi master Simon.
Just abit off humour guys.

----- Original Message -----
From: "Michelle Gerfort" <michelle.gerfort@teligent.se>
To: "Simon Oliver" <simon.oliver@umist.ac.uk>; "DBI-users"
<dbi-users@perl.org>
Sent: Thursday, February 22, 2001 3:55 PM
Subject: Re: Handeling undef data.


> This was exactly the solution to my problem
> Thank you Simon!  ;)
>
> /Michelle
>
> Simon Oliver wrote:
>
> > hmm my mailer (crappy Netscape 6) seemed to screw up there - try this:
> >
> > if (defined $row[$i]) {
> >    if ($row[$i] ne "") {
> >      print $row[$i] . "\t";
> >    } else {
> >      print "Empty string in row\t";
> >    }
> > } else {
> >      print "NULL value in row\t";
> > }
> >
> > // or was it me, P is next to { on the keyboard! //
> >
> > --
> >    Simon
>
>


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About