Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: $array[ 'Infinity' ]

by shmem (Canon)
on Dec 17, 2007 at 01:56 UTC ( #657359=note: print w/ replies, xml ) Need Help??


in reply to $array[ 'Infinity' ]

Is this documented anywhere?
Yes, in sv.c in the perl source ("use the source, luke" ;-)

Line 1680 ff:

/* =for apidoc looks_like_number Test if the content of an SV looks like a number (or is a number). C<Inf> and C<Infinity> are treated as numbers (so will not issue a non-numeric warning), even if your atof() doesn't grok them. =cut */

and so - suprise! - perlapi tells the same.

Read through sv.c to see what happens. The perl5 spec is coherent with its implementation ;-)

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}


Comment on Re: $array[ 'Infinity' ]
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2014-07-13 05:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (247 votes), past polls