carp
croaking from a Moose BUILD method
I want my class to blow up if the BUILD method fails. However, if I use croak to handle the error, the error gets reported from Class/MOP/Method.pm, rather than the caller\'s code. (That is to say, th[详细]
2023-04-13 08:04 分类:问答How can I change some specific carps into croaks in Perl?
I tried to catch a carp-warning: carp \"$start is > $end\" if (warnings::enabled()); ) with eval {} but it didn\'t work, so I looked in the eval documentation and I discovered, that eval catch[详细]
2022-12-29 20:33 分类:问答Find/Replace using Carp
I use carp free 3.6.4 to display content from some wordpress rss feeds onto a web page but there are always encoding errors (I get the diamond question (U+DDDF) whenever a blog user uses curly quotes[详细]
2022-12-14 04:26 分类:问答How can I replace all 'die's with 'confess' in a Perl application?
I\'m working in a large Perl application and would like to get stac开发者_Python百科k traces every time \'die\' is called. I\'m aware of the Carp module, but I would prefer not to search/replace every[详细]
2022-12-14 02:37 分类:问答