So I've been working on a report system using arrays but whenever I try to send a report it gives me this
Use of uninitialized value $intReason in array element at Server/Systems/Messaging.pm line 26.
I don't think it's really an error more like a waing cause everything works fine but it gives me that though.
here is the code
method handleSendReport($strData, $objClient){
my @arrData = split('%', $strData);
my $intPID = $arrData[5];
my $intReason = $arrData[6];
my $arrNickname = $arrData[7];
my @reasons = ("Swearing", "Sexual Language", "Racial Words", "Personal Info", "Email Address", "Real Name", "Name Calling", "Bad Penguin Name");
$objClient->botSay($reasons[$intReason]); #Line 26
}
