in reply to Re: Function over all letters in a string
in thread Function over all letters in a string
And the output is -my $string = "It's a cat and mouse game."; $string =~ s/(.)/$1 x (1 + rand(3))/ges; print "$string\n"; $string = "It's a cat and mouse game."; $string =~ s/([A-Za-z])/$1 x (1 + rand(3))/ges; print "$string\n";
IIIt'''s a cccat annddd mmoooussee gaammeee... IIItt'sss aa cccaaattt and mmoouusee ggaame.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Function over all letters in a string
by tilly (Archbishop) on Dec 01, 2003 at 02:29 UTC | |
by bart (Canon) on Dec 01, 2003 at 10:50 UTC | |
by Abigail-II (Bishop) on Dec 01, 2003 at 11:21 UTC | |
by tilly (Archbishop) on Dec 01, 2003 at 14:39 UTC | |
|
Re: Re: Re: Function over all letters in a string
by pg (Canon) on Dec 01, 2003 at 03:28 UTC |