Scalar found where operator expected at ./KursLog.pl line 24, near ""Error open("$Logpath" (Missing operator before $Logpath?) String found where operator expected at ./KursLog.pl line 24, near "$Log") ($!)\n"" (Missing operator before ") ($!)\n"?) syntax error at ./KursLog.pl line 24, near ""Error open ("$Logpath" Execution of ./KursLog.pl aborted due compilation errors.