Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: (jeffa) Re: 1 vs "1"

by davorg (Chancellor)
on Sep 12, 2001 at 19:11 UTC ( #111925=note: print w/replies, xml ) Need Help??


in reply to (jeffa) Re: 1 vs "1"
in thread 1 vs "1"

Unless I misunderstood the original question, this doesn't answer it. I read it to mean that if you had two scalars like this:

my $number = 1; my $string = "1";

how would you tell which is a string and which is a number. I don't think your solution addresses this.

Oh, and your regex to check for floating point numbers could use some work too :)

--
<http://www.dave.org.uk>

Perl Training in the UK <http://www.iterative-software.com>

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2022-08-18 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?