in reply to how to get out of subroutine without returning anything
I don't understand the question in the post, so I'll answer the question in the title in the hopes that they are the same.
how to get out of subroutine without returning anything
return; and return (); return an empty list (void and list context) or undef (scalar context). That's as little as you can return short of throwing an exception.
|
|---|