intRand is a sub:
sub intRand {
my $range = shift;
return int(rand() * $range);
}
-----Original Message-----
From: Darrell Gammill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 06, 2004 6:17 PM
To: Jeff Westman; Kamal Ahmed
Cc: [EMAIL PROTECTED]
Subject: RE: Error Message
what is 'intRand'? Do you mean 'int rand'?
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jeff
Westman
Sent: Wednesday, October 06, 2004 5:08 PM
To: Kamal Ahmed
Cc: [EMAIL PROTECTED]
Subject: Re: Error Message
You are trying to print a variable that has no value (null) so perl is
telling you that the variable is empty, and therefore cannot print it.
Solution: find out why your variable $class[intRand(45)] is not
populated.
Make sure you are using 'use strict' and 'use warnings'.
-Jeff
On Wed, 6 Oct 2004 18:00:41 -0400, Kamal Ahmed
<[EMAIL PROTECTED]> wrote:
>
> 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
>
>
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs