in reply to Generate the perl sequence 1, 11, 111, ....
For the fun of it:
perl -e 's/$/$\//;print while s/$/1/' [download]
Or more simply:
perl -le'print while s/$/1/' [download]