perf trace: Add Perl scripting support