use version; # Version comparison # '1.2.3', 'v1.2.3', 1.2.3 my $a = qv( 'v1.2.3' ); my $b = qv( '1.2.29' ); # Compare print +($a>$b) ? $a : $b;