
japhy
Enthusiast
Jul 18, 2000, 3:48 PM
Post #3 of 4
(19836 views)
|
mckhendry - there's no indication as to the context of these two subroutines. As they stand, they are equivalent. return returns the empty list in list context, and undef in scalar context. In fact, the output of the deparser shows that return() and return () are really return +() -- that is, explicitly returning an empty list. return on its own is really return wantarray ? () : undef.
|