if (!exists $rep->{$2}->{points})
{
$points = 0;
}
if ($1 eq 'plus')
{
$points++;
$self->sendmsg("You have changed $2's Reputation");
}
elsif ($1 eq 'minus')
{
$points--;
$self->sendmsg("You have changed $2's Reputation");
}
else
{
$self->sendmsg("Error: You must use Plus or Minus to effect Reputation Points");
}
$rep->{$2}->{points} = $points;
open FILE, "> ./Files/RepData.dat";
print FILE Dumper($rep);
close FILE;
}