What's up dudes? Another late night. I'm having a problem here. The following bit of code I'm using is generating an error with 'use strict':
BEGIN {
use CGI::Carp qw(carpout fatalsToBrowser);
open (LOG, ">errorlog.txt") or
die("Unable to open errorlog.txt: $!\n");
carpout(LOG);
}
The error code reads:
BEGIN not safe after errors--compilation aborted at /site_path/cgi-bin
+/event/eventform.cgi line 12.
Any ideas?
Note: Line 12 is the closing brace in the code above.
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar";
$nysus = $PM . $MCF;