but I get:print "[$version_on_disk]\t version on disk\n"; print "[$version_dns]\t version dns\n"; if ( $version_on_disk >= $version_dns ) { print "OK: the $sa_channel version on disk is up to date: $version +_on_disk\n"; exit 0; }
Why is the second variable not seen as number? This should be quite straightforward according to http://perldoc.perl.org/perlintro.html#Builtin-operators-and-functions[1195873] version on disk [1195874] version dns Argument "^G1195874" isn't numeric in numeric ge Argument "^G1195874" isn't numeric in numeric ge (>=) at kk.pl line 65 +, <CF> line 2.
In reply to Argument isn't numeric in numeric ge by natxo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |