in reply to Replace the last letter
$find = 's'; $replace = 'X'; $string = 'Snakes'; $string =~ s/$find$/$replace/; print $string, "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Replace the last letter
by gothic_mallard (Pilgrim) on Oct 07, 2004 at 17:22 UTC | |
by radiantmatrix (Parson) on Oct 07, 2004 at 18:13 UTC | |
|
Re^2: Replace the last letter
by Roger (Parson) on Oct 08, 2004 at 02:08 UTC |