*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, Visual basic, C++, SQL, I thought even
in Pascal a value of NULL signifies that the variable does not have a set
value, it is not defined. Exactly what a value of 'undef' signifies in perl.

Pigs do not fly that much is true even if you manage to throw them real high
they will not fly but just crash right back to earth, but perl does have a
way to indicate that a variable has no value set.

I thik the thing that Randal was saying is that 'NULL' does not exist as a
value in perl but he left out the part that others have pointed out before
'undef' has the same significance in perl as 'NULL' in other languages.

Regards,

Rob


On Sat, Jul 12, 2008 at 11:39 PM, Randal L. Schwartz <[EMAIL PROTECTED]>
wrote:

> >>>>> "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 nonsense question.
>
> --
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
> <[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
> See http://methodsandmessages.vox.com/ for Smalltalk and Seaside
> discussion
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> http://learn.perl.org/
>
>
>

Reply via email to