in reply to Function over all letters in a string
{ my $r = substr rand, 2; sub crand() { length $r or $r = substr rand, 2; chop $r; } } s[(.)]{$1 x (1+crand/3)}ge;
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Function over all letters in a string
by Abigail-II (Bishop) on Dec 01, 2003 at 10:35 UTC | |
by Aristotle (Chancellor) on Dec 01, 2003 at 17:06 UTC | |
by Abigail-II (Bishop) on Dec 01, 2003 at 17:47 UTC | |
by Aristotle (Chancellor) on Dec 01, 2003 at 18:11 UTC |