perlhist: import perlhist changes from 5.18.1