http://qs321.pair.com?node_id=501442


in reply to XP is just a number

#!/usr/bin/perl use strict; use warnings; use Scalar::Util; my $str = 'XP'; print "$str does", Scalar::Util::looks_like_number($str) ? '' : ' not', " look like a number.\n";
yields:
$ ./bs.pl XP does not look like a number.
Tsk, tsk.
Matt