473,471 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

uninitialized value in concatenation

34 New Member
When perl comes out with errors like this:

Use of uninitialized value in concatenation (.) or string at NQII.pl line 18, <STDIN> line 2.
Argument "" isn't numeric in numeric ne (!=) at NQII.pl line 342, <STDIN> line 2.
Argument "neopets.com/hi.phtml" isn't numeric in numeric ne (!=) at NQII.pl line 342, <STDIN> line 2.
Argument "POST" isn't numeric in numeric eq (==) at NQII.pl line 343, <STDIN> line 2.
Argument "POST" isn't numeric in numeric eq (==) at NQII.pl line 343, <STDIN> line 2.
Use of uninitialized value in concatenation (.) or string at NQII.pl line 355, <STDIN> line 2.
Use of uninitialized value in pattern match (m//) at NQII.pl line 391, <sock> line 22.

Does that make it slower? And any tips for getting rid of these errors?
Jul 14 '07 #1
6 4244
numberwhun
3,509 Recognized Expert Moderator Specialist
Well, troubleshooting Perl is typically a process of elimination (IMHO). I usually start with the most obvious error, which in this case would be "Use of uninitialized value in concatenation (.) or string at NQII.pl line 18, <STDIN> line 2".

This tells me that in your script, you have a variable being referenced that is not set when it is used. This could be caused by any number of situations, but for me, it has happened when the variable was out of scope.

If you posted your code here, we could help you troubleshoot it and guide you to getting it working.

Regards,

Jeff
Jul 14 '07 #2
samthemist
34 New Member
It works fine actually - with no errors to stop it. Though i was wondering if these little errors make it slower? Or do they have no affect at all on the speed?
Jul 14 '07 #3
KevinADC
4,059 Recognized Expert Specialist
these are not errors, they are warnings. I would certainly try and fix them and see if it helps increase the execution time of your script. Once they are all fixed you can disable warnings and see if that also helps.
Jul 14 '07 #4
samthemist
34 New Member
these are not errors, they are warnings. I would certainly try and fix them and see if it helps increase the execution time of your script. Once they are all fixed you can disable warnings and see if that also helps.
I don't particularly want to post the whole script here, think i could PM you it?
Jul 14 '07 #5
KevinADC
4,059 Recognized Expert Specialist
Please do not PM me your script. Maybe someone else will take a look at your code and help you debug it, but I don't want to.
Jul 14 '07 #6
samthemist
34 New Member
Please do not PM me your script. Maybe someone else will take a look at your code and help you debug it, but I don't want to.
Fair enough.

.....
Jul 14 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: G Kannan | last post by:
Hey all! I have written a perl script to retrieve information from a HTML Form and insert the data into an Oracle database table. I am gettting the the following error message: "Use of...
1
by: rk | last post by:
Hi, I'm a beginner for perl/cgi programs and i tried to write a cgi script and when i ran it, i got the following error. But when i verified it from the book i typed exactly whatever it is there...
2
by: Liang | last post by:
Hi, I use "defined $r_libs->{$name}" to check first if a key exists in a hash table. But Perl gives a warning WHENEVER the key exists: "Use of uninitialized value". Would u please help to...
13
by: rswanster | last post by:
When I compile and run the following: #include <iostream> int main() { bool f; std::cout << f << std::endl; f = not(f); std::cout << f << std::endl; }
3
by: julien | last post by:
Hello, Is it possible if a boolean was initialized or not? For other types of variable, I usually check if it is null. But this not possible for a boolean. Thank you Julien
21
by: sanjaymeher | last post by:
Hi, Right now addDynamicMemory(char **ptr, int size) method can able to handle if input ptr is intitialized to NULL or something. But how to improve this method to handle uninitialized pointed...
2
by: pnsreee | last post by:
Hi All, I have the following code. The array @sub_data will contain integers or a string"NO". I have to validate if the array contain integer. If it contain "NO" then no need to validate. ...
3
by: zcabeli | last post by:
Hi my $x = "1-6"; if ($x =~ /^\s*(+)\-(+)$\s*$/) { print "SUCCEED \n"; } else { print "FAILED \n"; }
2
by: bprabhu17 | last post by:
Hello, Could some please help me fix this error. Use of uninitialized value in concatenation (.) or string at MQ.pm line 450. Thanks in advance
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.