in reply to Generate the perl sequence 1, 11, 111, ....
$a=1; while ($b< 100){ $a =~ s/1$/11/; print "$a\n"; $b++; }
Enjoy!
Dageek
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Generate the perl sequence 1, 11, 111, ....
by blazar (Canon) on Oct 11, 2008 at 11:03 UTC |