Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: A function to determine if a string is numeric

by toolic (Bishop)
on Feb 24, 2012 at 00:46 UTC ( #955847=note: print w/replies, xml ) Need Help??

in reply to A function to determine if a string is numeric


This is also a FAQ: perldoc -q number

use warnings; use strict; use Scalar::Util qw(looks_like_number); my $s = shift; if (looks_like_number($s)) { print "$s is a number\n"; } else { print "$s isn't a number\n"; }

Replies are listed 'Best First'.
Re^2: A function to determine if a string is numeric
by juliosergio (Acolyte) on Feb 24, 2012 at 00:56 UTC

    Hey! Thanks!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://955847]
[stevieb]: good thing is that both sides of the break are completely frozen, so I was able to shut off the water to the building before any water leaks. I told the landlord last year to insulate that specific area better
[Corion]: stevieb: Our SV overlords don't know what "frozen pipe" means and think it's something like "frozen yogurt"
[ambrus]: huh... what does "SV" mean there?
[Marshall]: stevieb wish you well with water problems, my water was off all day Monday for repairs. Any more progress on .exe info problem?.
[stevieb]: Marshall: no. I commented on the thread yesterday. Visual Studio updates the tags ok, but corrupts the exe
[stevieb]: I advised the OP that a possible workaround would be to add a version function/flag that displays the required copyright/license info instead

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2016-12-08 18:12 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (144 votes). Check out past polls.