switch update_log_filter to perl
corrections for the perl version
Perl version now works identical to the ruby version