Revert "Fixed deprecation warning on perl 5.18."

This reverts commit 831098f8efc95bb8eb0a5861f6649369c282b643.