March 2002 Perl Hardware Store 29

6. Returning a False Value

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


Next Copyright © 2002 M-J. Dominus