Presumably, intRand is a sub.  I recreated your error, when
$class[intRand(45)] is undef and "use strict" and "use warnings" are in
place:
use strict;
use warnings;
my @class = (1, 2, 3, undef);
print " $class[intRand(45)]";

sub intRand {
        return 3;
}

>Use of uninitialized value in concatenation (.) or string at test.pl line
4.

So, clearly the results of $class[intRand(45)] returns undef.  This could be
because you have designated a subscript out of the range if @class, as in
you requested the 99th element of a 98 element array, or the element is
undef (as above).

HTH

Chris

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kamal
Ahmed
Sent: Wednesday, October 06, 2004 5:01 PM
To: [EMAIL PROTECTED]
Subject: Error Message

I am getting an error message:
�
"
Use of uninitialized value in concatenation (.) or string at ./exploitD.pl
line 2093.
�
Line 2093:
�
print " $class[intRand(45)]";
�
Hoe can i get rid of this message ?
�
Thanks,
�
-Kamal.


_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to