here use of < is forcing a conversion from string to number again and luckily we get correct results as both strings ($version and '008003') can be converted to  numbers. In some cases comparing strings will yield surprises. Example below:
$ perl -le 'print "yes" if "no" lt "yes";'
yes
$ perl -le 'print "yes" if "no" < "yes";'
$