Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Generate the perl sequence 1, 11, 111, ....

by TimToady (Parson)
on Oct 10, 2008 at 17:41 UTC ( #716497=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        [\~] 1 xx *
    
  2. or download this
        pugs> .say for [\~] 1 xx 10
        1
    ...
        11111111
        111111111
        1111111111
    
  3. or download this
        1...{$_~1}
    
  4. or download this
        1,11,111,1111 ... {$^previous ~ 1}
    
  5. or download this
    1,*~1...*
    1, 11, 111, 1111, {$^previous ~ 1} ... *
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2014-09-20 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (165 votes), past polls