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 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.

The 'null' value in both C and Java is a null reference, and can't be used in
general to mean that a variable doesn't hold a value. As far as I know Visual
Basic's use of null is the same as SQL's, and applies only to database 
operations.

Rob

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to