![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Most Annoying Error : Use of uninitialized value in concatenation (.) or string at C:\Perl\Oby schwern (Scribe) |
on Jul 16, 2005 at 00:14 UTC ( [id://475391]=note: print w/replies, xml ) | Need Help?? |
Use the error message. Use of uninitialized value in concatenation (.) or string at C:\Perl\Orange\pop_db.pl line 18, <FILE> line 46062. The key is "line 46062". Perl is telling you that the uninit value is encountered when executing line 18 of your program AND that the last line read from the last opened filehandle (FILE) was 46062. This information would provide useful except that you slurped in the entire file before processing it. Not only wasteful of memory but since everything in the loop happens after you read the whole file they *all* appear to happen at line 46062. If you modify your code to process the file a line at a time the warning will identify for you exactly what line in the data is corrupt.
In Section
Seekers of Perl Wisdom
|
|