Problems? Is your data what you think it is? | |
PerlMonks |
Re^3: Converting a list of numbers to use a range operatorby LanX (Saint) |
on Mar 24, 2013 at 14:18 UTC ( [id://1025146]=note: print w/replies, xml ) | Need Help?? |
> but why does this push @a,"inf" work? inf and -inf are special numeric constants
in this case they are handy, because $now+1 == inf won't raise a warning
> Where is this "inf" documented? no idea, I scanned the perldocs for X<inf> w/o success. see also Infinity and Inf?
Cheers Rolf ( addicted to the Perl Programming Language) UPDATE: deleted wrong example about incrementing inf
In Section
Seekers of Perl Wisdom
|
|