From a29f1f47ffda738e770dabccd5c8423b8bd0ab6c Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 9 Aug 2007 09:42:18 +0000 Subject: (find_index) restore die (we should have used Carp::croak() instead but postponed this improvements after 2008.0) --- lib/MDK/Common/Func.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/MDK/Common') diff --git a/lib/MDK/Common/Func.pm b/lib/MDK/Common/Func.pm index 12e8777..82811bb 100644 --- a/lib/MDK/Common/Func.pm +++ b/lib/MDK/Common/Func.pm @@ -258,8 +258,7 @@ sub find_index(&@) { $_ = $_[$i]; &$f and return $i; } - use Carp; - carp("find_index failed in @_") + die "find_index failed in @_"; } sub map_each(&%) { my ($f, %h) = @_; -- cgit v1.2.1