in reply to Re: How do I test for a NULL string?
in thread How do I test for a NULL string?

You are essentially saying that the question is nonsensical because 'NULL' is not a reserved word in the Perl language.
No, I'm saying more than that.
However, it is evident that the questioner comes from a C background,
No, it could also be an SQL background.
in which the phrase 'NULL string' has a well-defined meaning with a suitable analogue in Perl
No, because even NULL in C could mean NULL pointer, which is closer to undef than to an empty string.

You have just proven my point. You assumed things that cannot be assumed. Therefore, the question is unanswerable without further information. A good question answerer understands how many different context things apply. And personally, I've seen people use NULL to mean every single one of those items in that list I give.

-- Randal L. Schwartz, Perl hacker

  • Comment on Re: Re: How do I test for a NULL string?

Replies are listed 'Best First'.
Re: Re: Re: How do I test for a NULL string?
by djantzen (Priest) on Feb 12, 2002 at 18:07 UTC

    No, because even NULL in C could mean NULL pointer, which is closer to undef than to an empty string.

    Quite true, in which case the appropriate phrase would be 'NULL string pointer', or maybe 'NULL pointer to a string', but that's not how the question is stated. Now I understand the need to be sensitive to context when interpreting a question, however when I first read your post I thought you were giving a general answer suitable to a well-phrased query. If this whole debate turns on your interlocuter not knowing precise terminology, then there's really no point to this.

      If this whole debate turns on your interlocuter not knowing precise terminology, then there's really no point to this.

      I thought the whole point of his post was to point out that terms from one language dont always have the same, or for that matter _any_ meaning in another. So to introduce them to possibly equivelent , but different, terms that _do_ have a well defined meaning in the language the question was asked about can hardly be a bad thing.

      Yves / DeMerphq
      --
      When to use Prototypes?