{ 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.
In reply to Re: Function over all letters in a string
by Aristotle
in thread Function over all letters in a string
by Jobby
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |