in reply to Re^2: Should I use carp/croak or warn/die (@CARP_NOT)
in thread Should I use carp/croak or warn/die

From my experience, mucking with the likes of caller and/or any aspect of such an undertaking of tracking and reporting from nested modules and subs is fraught with frustration, angst, head-desking and oftentimes throwing things... particularly when dealing with anony-subs and the like :)

  • Comment on Re^3: Should I use carp/croak or warn/die (@CARP_NOT)

Replies are listed 'Best First'.
Re^4: Should I use carp/croak or warn/die (@CARP_NOT)
by shmem (Chancellor) on May 31, 2018 at 00:10 UTC

    That's right. But sometimes caller is needed to implement nifty YAGNIs :)

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'