Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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??

Help for this page

Select Code to Download

  1. or download this
    perl -e 's/$/$\//;print while s/$/1/'