remove newline in perl version check