in reply to Re^2: Is there any module to strip error filename ?in thread Is there any module to strip error filename ?
That's the point of Carp::croak. If you don't want that, use die.