Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7595607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:42:47+00:00 2026-05-30T21:42:47+00:00

I am updating a few records in database. And all the processing is done

  • 0

I am updating a few records in database. And all the processing is done in eval block.
The problem is that even if the records are successfully updated , I still see a exception being raised.

To debug the exception, I tried printing it using Data Dumper but the exception is blank.

Can any one please help me identify what is this error and why is it thrown every time ?

Environment Details (Perl 5.8 and Unix SUSE)

Dump from Data Dumper:

$VAR1 = '
';

I am using various internal APIs, to update these records.. so I have modified my code to look similar:

      sub main{
        eval{
         DB->updateRecord($value)
        };
        if($@){
             Mail->SendMail(__PACKAGE__,$@):
        }
       }

       package DB;
       sub updateRecord{
             my ($self , $value) = @_;
             my $query = "update set column_value = $value ..<update query> ";
            API->processQuery($query );
        }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T21:42:49+00:00Added an answer on May 30, 2026 at 9:42 pm

    Does your code use warnings;?

    The symptom your describing indicated that in your code you are passing die the string "\n". My guess would be that in your source you have a line that is trying to die with an error message but your error message was not initialized. It could be something like

    my $error;
    if (some_test()) {
        $error = 'Some String';
    }
    if (some_other_test()) {
        die "$error\n";
    }
    

    If some_test() passes but some_other_test() fails the die will report an error containing only a new line. It would also emit an warning if warnings are enabled.

    Another possibility is a typo. If you don’t use strict; the error variable might not be correct.

    my $error = 'Some String';
    if ($error) {
        #note the typo (transposed ro to or)
        die "$erorr\n";
    }
    

    Without use strict; this can be an easy mistake to miss.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm haing a few problems updating a row in my database using Linq2Sql. Inside
While I'm updating my database I want to display a progress dialog. My problem
I have a listview and also a DataGrid having records with images. My problem
I am currently updating a few settings in a rather large *.exe.config file via
I've had quite a few problems and know that I can get some good
I'm currently updating our software installer and have a few questions about getting the
I'm a few weeks into moving all of our source code into an SVN
I use the django admin for updating various data on the MySQL database. I
Background: I have a project that is not at all large scale (2 ASP.NET
i'm processing a form that has a lot of fields for a user who

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.