473,786 Members | 2,380 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 4272
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
14158
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
15537
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
5620
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
20304
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
9584
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
2284
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
7016
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
1825
by: zcabeli | last post by:
Hi my $x = "1-6"; if ($x =~ /^\s*(+)\-(+)$\s*$/) { print "SUCCEED \n"; } else { print "FAILED \n"; }
2
4090
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
9492
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10360
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
10163
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...
0
9960
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...
1
7510
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
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.