Perl for Linux is provided by the OS. The most likely reason for failure is that your PERL modules do not support the use of threads.
You can workaround this by either removing or commenting out the line 16
and add another line that says
Then rerun the script and all should be successful.