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