Re: Define NULL value in Perl

2008-07-14 Thread Rob Coops
*Randal wrote:* *Perl doesn't have NULL. That'd be like saying how do I make this pig fly?. It's a nonsense question. * I think this is a little to easy, perl does have a value that indicates that a variable does not have any set value it is called: undef In many other langueages like Java,

Re: Define NULL value in Perl

2008-07-14 Thread Randal L. Schwartz
Rob == Rob Coops [EMAIL PROTECTED] writes: Rob I thik the thing that Randal was saying is that 'NULL' does not exist as a Rob value in perl but he left out the part that others have pointed out before Rob 'undef' has the same significance in perl as 'NULL' in other languages. But it doesn't.

Re: Define NULL value in Perl

2008-07-14 Thread Rob Dixon
Rob Coops wrote: *Randal wrote:* *Perl doesn't have NULL. That'd be like saying how do I make this pig fly?. It's a nonsense question. * I think this is a little to easy, perl does have a value that indicates that a variable does not have any set value it is called: undef In many other

Re: Define NULL value in Perl

2008-07-14 Thread Jenda Krynicky
From: Rob Dixon [EMAIL PROTECTED] Rob Coops wrote: *Randal wrote:* *Perl doesn't have NULL. That'd be like saying how do I make this pig fly?. It's a nonsense question. * I think this is a little to easy, perl does have a value that indicates that a variable does not have any set

Re: Define NULL value in Perl

2008-07-12 Thread Randal L. Schwartz
luke == luke devon [EMAIL PROTECTED] writes: luke How can we define NULL values in perl ? for instance if I wanted to luke assign a NULL value for a variable called $x= , how would it be in the luke code ? Perl doesn't have NULL. That'd be like saying how do I make this pig fly?. It's a

RE: Define NULL value in Perl

2008-07-09 Thread Thomas Bätzler
luke devon [EMAIL PROTECTED] asked: How can we define NULL values in perl ? for instance if I wanted to assign a NULL value for a variable called $x= , how would it be in the code ? NULL is a SQL term. The Perl equivalent is undef, i.e. $x = undef; To check for definedness of a variable,

Re: Define NULL value in Perl

2008-07-09 Thread yitzle
On Wed, Jul 9, 2008 at 2:30 AM, Thomas Bätzler [EMAIL PROTECTED] wrote: NULL is a SQL term. The Perl equivalent is undef, i.e. $x = undef; NULL is used far more widely than in just SQL; it is used in C/C++, Java, Visual Basic and I'm sure many many more. -- To unsubscribe, e-mail: [EMAIL

Re: Define NULL value in Perl

2008-07-09 Thread Jorge Almeida
On Tue, 8 Jul 2008, luke devon wrote: Hi How can we define NULL values in perl ? for instance if I wanted to assign a NULL value for a variable called $x= , how would it be in the code ? I never had a use for NULL outside C and I have no idea why you would want it. Still, I would guess that

Re: Define NULL value in Perl

2008-07-09 Thread Rob Dixon
yitzle wrote: On Wed, Jul 9, 2008 at 2:30 AM, Thomas Bätzler [EMAIL PROTECTED] wrote: NULL is a SQL term. The Perl equivalent is undef, i.e. $x = undef; NULL is used far more widely than in just SQL; it is used in C/C++, Java, Visual Basic and I'm sure many many more. But since the OP

Re: Define NULL value in Perl

2008-07-09 Thread Brad Baxter
On Jul 9, 12:44 am, [EMAIL PROTECTED] (Luke Devon) wrote: Hi How can we define NULL values in perl ? for instance if I wanted to assign a NULL value for a variable called $x= , how would it be in the code ? Thank you Luke Send instant messages to your online

Re: Define NULL value in Perl

2008-07-08 Thread yitzle
On Wed, Jul 9, 2008 at 12:44 AM, luke devon [EMAIL PROTECTED] wrote: Hi How can we define NULL values in perl ? for instance if I wanted to assign a NULL value for a variable called $x= , how would it be in the code ? Thank you Luke The closest Perl has to NULL is undef. Or maybe they are