Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

How Wrong You Are

by mojotoad (Monsignor)
on Oct 19, 2005 at 21:52 UTC ( #501442=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://501442]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2020-07-06 13:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?