Recipe 10.10. Returning Failure
10.10.1. Problem
You want to return a
value indicating that your function failed.
10.10.2. Solution
Use a bare
return statement without any argument, which
returns undef in scalar context and the empty list
( ) in list context.
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.
Start a Free Trial