Compare version strings in perl