pt-online-schema-change fails?

I am trying with your tool pt-online-schema-change, but it fails to compile at line 3641.

I tried to create an index with it, here is a copy of the error message.

Am I missing anything? Like perl modules?

Look likes you are missing Time-HiRes module. If you are on RHEL/CentOS box install it first as follows and retry.

$ yum install Time-HiRes