in reply to Re^4: Perl Style: Is initializing variables considered taboo?
in thread Perl Style: Is initializing variables considered taboo?
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.
|
|---|