Copyright © tutorialspoint.com
Syntax
Definition and UsageReturns EXPR at the end of a subroutine, block, or do function. EXPR may be a scalar, array, or hash value; context will be selected at execution time. If no EXPR is given, returns an empty list in list context, undef in scalar context, or nothing in a void context. Return Value
ExampleTry out following example:
It will produce following results:
|
Copyright © tutorialspoint.com