add perl version check