It doesn't. It returns undef in a scalar context, but an empty list in a list context.
In reply to Re^6: What to test in a new module by choroba in thread What to test in a new module by Bod