In scalar context, return; evaluates to undef. In list context, it evaluates to the empty list. In both contexts, it evaluates to something which evaluates to false in boolean context.
In list context, return undef; evaluates to a single-element list which evaluates to true in boolean context.
In reply to Re^5: Perl Style: Is initializing variables considered taboo?
by chromatic
in thread Perl Style: Is initializing variables considered taboo?
by ait
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |