The stuff you're seeing is most likely due to something earlier corrupting the state of the perl interpreter, which is going to be hard to track down. This will be either due to a bug in the perl core itself, or due to a bug in an XS-based module you are loading. If the latter, see if there's a newer release of that module; if the former, try using perl 5.20.0; in either case, the bug may have been found and fixed.
Dave.