Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: I don't understand.

by Your Mother (Archbishop)
on Nov 19, 2004 at 00:19 UTC ( [id://408920]=note: print w/replies, xml ) Need Help??


in reply to I don't understand.
in thread Detecting if a scalar has a number or string

Among other reasons:

sub is_a_num { $_[0] =~ m/^[0-9]*$/ } my $not_at_all = ''; print is_a_num( $not_at_all ) ? "Yeppers.\n" : "Nopers.\n";

Beware the Star of Regex!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-24 13:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found