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

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

by Skeeve (Vicar)
on Oct 10, 2008 at 08:39 UTC ( #716393=note: print w/ replies, xml ) Need Help??


in reply to Generate the perl sequence 1, 11, 111, ....

For the fun of it:

perl -e 's/$/$\//;print while s/$/1/'

s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e


Comment on Re: Generate the perl sequence 1, 11, 111, ....
Select or Download Code
Replies are listed 'Best First'.
Re^2: Generate the perl sequence 1, 11, 111, ....
by jwkrahn (Monsignor) on Oct 10, 2008 at 10:14 UTC

    Or more simply:

    perl -le'print while s/$/1/'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://716393]
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 2016-02-06 21:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (236 votes), past polls