my $subject = param('subject'); open (LOG, ">/var/web/root/logs/$subject") || die "Error opening file: $!\n";