Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Carp module oddities

Carp module oddities

Carp module oddities

I use Carp a lot when writing scripts as unlike the majority of the Perl community, the code I write is usually full of silly mistakes and Carp shouts at me to put them right.

I have been working on a server recently where the page cannot be displayed, usually down to me doing something stupid, but Carp is not reporting the error. If I put the script on another server, Carp reports the specific error. Both servers use v3.63 so what could be causing the difference between the 2 servers?


RE: Carp module oddities

Hi Keith,

It looks like a different config of the web server.
Maybe the webserver is configured to show the fatal errors on the pages.
Making errors visible to the world is a security risk.
Not possible to access the error log file ?



RE: Carp module oddities


I have been working on a server recently where the page cannot be displayed, usually down to me doing something stupid, but Carp is not reporting the error.

If this is ActiveState Perl on Windows and is v5.9.xxx upwards, Carp doesn't work anymore!

It drove me so nuts not being able to debug my scripts, I have moved over to Catalyst which comes with an in-built PSGI devel server which shows every error, warning and everything in-between when in debug mode!

Why it broke in the later versions I have no idea, but ever since running 5.14.2 on Windows Server 2008 R2, I cannot see any errors, unless the first thing I do at the top of each script is output a header.

Otherwise all I get is 500 server error, or cannot display the page!

I still don't get to see warnings for any legacy scripts, whereas the Catalyst devel server debug output shows everything, it's worth checking it out smile

"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Dance Music Downloads

RE: Carp module oddities

I only use Carp during Dev so not really a security problem. I do have access to the logs and they show the errors but of course, not at run time.
1DMF - Carp works a bit but as PredaMarcel suggests, the server setup could be at fault here - I will have to look into it. Do the programmers using Active State always write perfect code then?


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close