A
augukarl
Hi everyone,
Let's say, for instance, that I would like to replace each instance of
the letter 'e' in this sentence with a random integer between 0 and 9.
How would I do that? The following does not work obviously:
my $s = 'Let's say, for instance...';
while ($s =~ /e/g) {
$0 = int(rand(10));
}
Regards,
August
Let's say, for instance, that I would like to replace each instance of
the letter 'e' in this sentence with a random integer between 0 and 9.
How would I do that? The following does not work obviously:
my $s = 'Let's say, for instance...';
while ($s =~ /e/g) {
$0 = int(rand(10));
}
Regards,
August