in reply to adding wtmp script into logwatch
Since your script starts with 'perl -we', the containing file should be executed by a shell.
The other option is to get rid the the "perl -we '", and the terminating "'", then let it be invoked by 'perl'.
FYI - this is what invoking with perl looks like on Windows: (Note the similarity to your messages)
>perl -e "perl -we 'SomeJunk'" String found where operator expected at -e line 1, near "we 'SomeJunk' +" (Do you need to predeclare we?) syntax error at -e line 1, near "we 'SomeJunk'" Execution of -e aborted due to compilation errors.
"XML is like violence: if it doesn't solve your problem, use more."