Questions tagged [carp]

Carp is intended for questions regarding either the word Carp - a Perl module to return module-oriented stack traces, warnings and errors, or one of the following acronyms: Cache Array Routing Protocol (CARP) - a distributed caching algorithm used in load-balancing HTTP requests; or Common Address Redundancy Protocol (CARP) - a distributed networking algorithm for sharing IP addresses.

References

24 questions
1
vote
1 answer

Calling 'confess' under Plack/Starman

I have a Plack/Starman application running with TryCatch statements that call 'confess' from the Carp module. However I notice that the confess output is not printing to STDOUT. I've tried routing STDERR output to STDOUT '2>&1', but still don't see…
MadHacker
  • 608
  • 5
  • 18
1
vote
0 answers

Perl debuging causes: An internal error occurred during: "PerlDebugJob"

I didn't know what I do wrong. When I debug my perl script, it was terminated. Place where scipr is terminated is completely normal return from the function: sub new { my $self = shift; $self = {}; bless $self; #instance of "base"…
stepan
  • 39
  • 4
1
vote
2 answers

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 catches only syntax-errors, run-time-errors or executed…
sid_com
  • 24,137
  • 26
  • 96
  • 187
1
vote
0 answers

Carp reporting from the wrong location with @CARP_NOT (Moose and Method Modifiers)

This is a followup question to warnings::warnif( 'deprecated' … ) with carp?. here's a snippet of my code from Business::CyberSource on Github note: the previous answer (in the previous question), and adding of @CARP_NOT have demonstrated that…
xenoterracide
  • 16,274
  • 24
  • 118
  • 243
1
vote
2 answers

Carp: Bizarre copy of ARRAY in sassign. Any fixes?

I'm suffering an annoying problem when trying to die from within an eval. The code is as follows; $status = eval { $self->$func( @{$y->{args}} ); }; in this case $self->$func points to a handler that detaches to a certain page on error like…
mark
  • 1,769
  • 3
  • 19
  • 38
1
vote
3 answers

Can't install Carp-1.25

I have installed Strawberry Perl for Windows, "DWIM Perl" from: http://dwimperl.com/. I would like to use Carp. So I have downloaded Carp-1.25 from CPAN, un-TAR-ed it, and ran nmake. I get: Microsoft (R) Program Maintenance Utility Version…
Helen Craigman
  • 1,443
  • 3
  • 16
  • 25
1
vote
2 answers

CARP hash in Python

I am attempting to implement a CARP hash in Python as described in the following IETF draft: https://datatracker.ietf.org/doc/html/draft-vinod-carp-v1-03#section-3.1 Specifically: 3.1. Hash Function The hash function outputs a 32 bit unsigned…
0
votes
2 answers

What does Carp::carp do in Perl?

Can anyone please explain me about carp subroutine with sample Perl code?
thillaiselvan
  • 637
  • 6
  • 18
0
votes
1 answer

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 and also after all question marks that are…
pg.
  • 2,503
  • 4
  • 42
  • 67
1
2