($new = $old = "SuperMan") =~ s/^Super//;
Of course, this mostly boils down your three lines with the newlines and some other bits taken out.
Abigail
In reply to Re: Substitution question
by Abigail-II
in thread Substitution question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |