Skip to content
quotesby

About this quote

What does it mean?
He explains that the variable $! signals an error condition, and its short name reflects that purpose.
In plain terms
Appending $! marks an error; the name is short on purpose.
What can you take from it?
Use concise variable names for common signals.

Where it applies

  • writing Perl scripts
  • debugging code

Putting it to work

  • check $! after system calls
  • keep variable names meaningful

Questions to consider

  • How does $! differ from other error indicators?
  • When should you rely on $!?

Another view

Only applies to Perl; not universal.

More from Larry Wall

  1. Well, that's more-or-less what I was saying, though obviously addition is a little more cosmic than the bitwise operators.

    Permalink to quote #114
  2. The choice of approaches could be made the responsibility of the programmer.

    Permalink to quote #116
  3. How do Crays and Alphas handle the POSIX problem?

    Permalink to quote #113

Related quotes

  1. Anyway, my money is still on use strict vars . . .

    Larry WallLarry Wall quote #131
  2. A wise man's kingdom is his own breast: or, if he ever looks farther, it will only be to the judgment of a select few, who are free from prejudices, and capabl…

    David HumeDavid Hume quote #1
  3. Truth lies within a little and certain compass, but error is immense.

    Henry, 1st Viscount Bolingbroke St JohnHenry, 1st Viscount Bolingbroke St John quote #1