473,320 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

uninitialized value in concatenation

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 4228
numberwhun
3,509 Expert Mod 2GB
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
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 Expert 2GB
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
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 Expert 2GB
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
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.