in reply to
Re^2: adding wtmp script into logwatch
in thread adding wtmp script into logwatch
What I meant was : Get rid of the "perl -we" entirely.
This includes the single quotes after "perl -we", and the matching one at the end of the program.
The reason for this is that , for some reason, for this script, your system is invoking the perl interpreter automatically, instead of the expected bash (or other) shell. And 'perl' does not like a program content to start with 'perl -we'.
"XML is like violence: if it doesn't solve your problem, use more."