Next Tricks of the Wizards 119

Returning a False Value

        sub foo {
          ...
          return undef;                # False
        }
        if (@result = foo(...)) { ... } 
        if (@result) { ... }        # Yes!


Next Copyright © 2003 M. J. Dominus