Compile a log format string to perl-code
