http://www.perlmonks.org?node_id=716583


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

I personally believe that

perl -le 's/$/1/, print while 100 > length'

Incidentally, now that I notice, the anchor is not necessary at all. If it were not for a mandatory /e modifier, this could make for a golfed solution just as good as JavaFan's

perl -E'{s//say/e,redo}'

but that's not the case...

--
If you can't understand the incipit, then please check the IPB Campaign.