"I wan't to replace the last two digits in a string with 67"
In that case:
$string =~ s/\d\d$/67/;
May I suggest perlre and perlretut for more information.
In reply to Re: How to replace the last 2 characters in a string
by McDarren
in thread How to replace the last 2 characters in a string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |