Not working

Not working for me,
downloadet the script
chmod +x delete_old_comments.pl
sudo ./delete_old_comments.pl -d 10 -s /usr/local/nagios/var/status.dat -c /usr/local/nagios/rw/nagios.cmd

and nothing happens, the script runs, but no errors, no output, and no comments deleted (even tho there are a lot comments over 10 days old.)
so doesn’t work, sadly.
i use Nagios Core Version 3.2.3