HTH, Ratamy $text = "the quick brown fox likes jumping"; my $pos1 = index ($text, "fox"); my $length = 3; substr( $text, $pos1, $length, "aligator"); print $text,"\n";
In reply to Re: Replace text at given index
by Ratazong
in thread Replace text at given index
by danj35
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |