On Thu, January 10, 2008 12:32, Joshua Krause wrote:
I installed the rootlogin.pl and it wasn't working for a bit until I put the actual $BBHOME directory in the hobbitlauch.cfg for the rootlogin.pl entry. But now when I look at the rootlogin.log file I am getting these errors:
Use of uninitialized value in concatenation (.) or string at /opt/hobbit/server/ext/rootlogin.pl line 76, <STDIN> line 102879.
Use of uninitialized value in concatenation (.) or string at /opt/hobbit/server/ext/rootlogin.pl line 76, <STDIN> line 103303.
Use of uninitialized value in concatenation (.) or string at /opt/hobbit/server/ext/rootlogin.pl line 76, <STDIN> line 103673.
Use of uninitialized value in concatenation (.) or string at /opt/hobbit/server/ext/rootlogin.pl line 76, <STDIN> line 104351.
Use of uninitialized value in concatenation (.) or string at /opt/hobbit/server/ext/rootlogin.pl line 76, <STDIN> line 105102.
Use of uninitialized value in concatenation (.) or string at /opt/hobbit/server/ext/rootlogin.pl line 76, <STDIN> line 105945.
Use of uninitialized value in concatenation (.) or string at /opt/hobbit/server/ext/rootlogin.pl line 76, <STDIN> line 106447.
Use of uninitialized value in concatenation (.) or string at /opt/hobbit/server/ext/rootlogin.pl line 76, <STDIN> line 106861.
Use of uninitialized value in concatenation (.) or string at /opt/hobbit/server/ext/rootlogin.pl line 76, <STDIN> line 107535.
Use of uninitialized value in concatenation (.) or string at /opt/hobbit/server/ext/rootlogin.pl line 76, <STDIN> line 108031.
Use of uninitialized value in concatenation (.) or string at /opt/hobbit/server/ext/rootlogin.pl line 76, <STDIN> line 108397.
Use of uninitialized value in concatenation (.) or string at /opt/hobbit/server/ext/rootlogin.pl line 76, <STDIN> line 108912.
And line 76 is this:
62 elsif ($line =~ /^\@\@/) {
63 # End of a message. Do something with it.
64 processmessage();
65 }
66 elsif ($line =~ /^\[(.+)\]/) {
67 # Start of new message section.
68
69 $cursection = $1;
70 $sections{ $cursection } = "\n";
71 }
72 else {
73 # Add another line to the entire message text variable,
74 # and the the current section.
75 $msgtxt = $msgtxt . $line;
76 $sections{ $cursection } = $sections{ $cursection } . $line;
77 }
78 }
79
80
* To: <hobbit (at) hswn.dk>
* Subject: RE: [hobbit] Sample of Hobbit server-side module (was: Who
Test) * From: "Hubbard, Greg L" <greg.hubbard (at) EDS.COM> * Date: Tue, 30 Jan 2007 08:39:43 -0600 * Thread-index: AcdEXpGdY3UJQChIRdqsdnE5/kBgoQAHTv2A * Thread-topic: [hobbit] Sample of Hobbit server-side module (was: Who Test)
That is a normal Perl gripe if you use one of the pragmas (use strict; use warning) or have the -w switch in the first line. Without this stuff, Perl silently "handles" this condition -- Perl was not always militant about having variables predeclared and initialized prior to first use.
GLH
-----Original Message----- From: Morris, Chris (SS-IS) [mailto:CHRIS.MORRIS (at) RWEnpower.com] Sent: Tuesday, January 30, 2007 5:04 AM To: 'hobbit (at) hswn.dk' Subject: RE: [hobbit] Sample of Hobbit server-side module (was: Who Test)
The script works but is generating this message in the log :-
Use of uninitialized value in concatenation (.) at /usr/local/hobbit/server/ext/rootlogin.pl line 76, <STDIN> line 841341.