Just a couple of minor tips

Just a couple of minor idioms you may not know about, also check out "perldoc perlrun" for some tips, e.g. the grep stuff you implemented can be done as a one-liner with:

    $ perl -ne 'print if /pattern/' < anx-convert.log

Which is just:

    $ perl -MO=Deparse -ne 'print if /0/' < anx-convert.log

Also interesting:

    $ perl -MO=Deparse -pe 's/foo/bar/g' < anx-convert.log