Skip to content
quotesby

About this quote

What does it mean?
Perl will always provide a null value when needed.
In plain terms
Perl always returns null.
What can you take from it?
Expect a null result in edge cases.

Where it applies

  • error handling
  • data processing

Putting it to work

  • check for null before using results

Questions to consider

  • How do you differentiate null from false?

Another view

Null can hide bugs if not handled.

More from Larry Wall

  1. It's hard to tune heavily tuned code. :-)

    Permalink to quote #178
  2. It's easy to solve the halting problem with a shotgun. :-)

    Permalink to quote #180
  3. Er, Tom, I hate to be the one to point this out, but your fix list is starting to resemble a feature list. You must be human or something.

    Permalink to quote #177

Related quotes

  1. And don't tell me there isn't one bit of difference between null and space, because that's exactly how much difference there is. :-)

    Larry WallLarry Wall quote #2
  2. Almost nothing in Perl serves a single purpose.

    Larry WallLarry Wall quote #174