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 6050993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:45:09+00:00 2026-05-23T07:45:09+00:00

I am clearing up some code and I see in our server logs that

  • 0

I am clearing up some code and I see in our server logs that the perl error is …

Use of uninitialized value in string eq at .....

Looking at the code the line looks like this….

if ($level1 eq $level2) {

OK fair enough. I suppose my question is this. Is it $level1 or $level2 that’s the problem?

I wrote a quick test to try to replicate it locally and it looks like this….

#!/usr/bin/perl
use warnings;
my $a;
my $b;

if ($a eq $b){
    print "....";
}

And I get a much more informative error.

Use of uninitialized value $a in string eq at ./warntest.cgi line 7.
Use of uninitialized value $b in string eq at ./warntest.cgi line 7.

This is seemingly inconsistent behavior. Does anyone have a clue?
Janie

  • 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-23T07:45:09+00:00Added an answer on May 23, 2026 at 7:45 am

    The indication of which variable was undef was added to the warning (where easily possible) in perl 5.10 (to much cheering). Your server is likely using an older perl.

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

Sidebar

Related Questions

I'm running some code through FxCop and am currently looking at clearing all of
I have an FLA done in Flash 10, and some AS3 code that manipulates
While cleaning some code today written by someone else, I changed the access modifier
** EDIT November 17th ** Hi again, I wanted to show some code you
I am reading some source code and I found this statement at the very
In our web-app we are using Launcher to call some command line functions (not
I'm trying to update some user control in wpf by code, with no luck.
I have a bubble generator that is mostly working, but is not properly clearing
I get this error when posting a form. The strangest thing, though, is that
I am trying to put some jquery UI code into an existing asp.net app,

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.