Fix plrep -g with modern perl