1.

What Value Is Returned By A Lone Return; Statement?

Answer»

The undefined VALUE in scalar context, and the EMPTY list value () in list context. This WAY functions that wish to return failure can just use a SIMPLE return WITHOUT worrying about the context in which they were called.

The undefined value in scalar context, and the empty list value () in list context. This way functions that wish to return failure can just use a simple return without worrying about the context in which they were called.



Discussion

No Comment Found