473,686 Members | 2,782 Online
Bytes | Software Development & Data Engineering Community
+ 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.co m/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 4262
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
14145
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 uninitialized value in concatenation (.) at register.pl line 38, <STDIN> line 10." The PERL code is as follows:
1
15531
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 and i checked other examples too. I did't get any clue.Can someone please help me on this. #!/usr/bin/perl use warnings;
2
5618
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 check the script, and let me know the reason? Thanks in advance. Liang
13
20290
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
9572
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
2263
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 even. Any Answer ?? Thanks, Sanjay
2
7011
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. for ($i=1;$i<10;$i++) { Tie::CheckVariables->on_error(sub{print "ERROR!"}); tie my $data,'Tie::CheckVariables','integer';
3
1819
by: zcabeli | last post by:
Hi my $x = "1-6"; if ($x =~ /^\s*(+)\-(+)$\s*$/) { print "SUCCEED \n"; } else { print "FAILED \n"; }
2
4080
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
8584
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9054
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8932
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8768
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8778
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2945
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 we have to send another system
2
2205
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1934
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.