Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Infinity and Inf?

by moritz (Cardinal)
on Sep 01, 2010 at 10:39 UTC ( #858311=note: print w/replies, xml ) Need Help??


in reply to Infinity and Inf?

But I would be interested to know the canonical/intended way to use those constants, before messing around with internals!

There is, if you're willing to use v6;:

$ perl6 -e 'for 1..Inf { .say; last if $_ == 5 }' 1 2 3 4 5
Perl 6 - links to (nearly) everything that is Perl 6.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://858311]
help
Chatterbox?
[LanX]: darn my pc is restarting for updates
erix chuckles

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2017-10-17 15:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (233 votes). Check out past polls.

    Notices?