Is there a way to say something like $NewVariable eq whatever $ExistingVariable would be if I applied s/^Super// to it?But of course
my $str1 = "SuperMan"; print $str1, $/; (my $str2 = $str1) =~ s{^Super}(); print $str2, $/; __output__ SuperMan Man
_________
broquaint
In reply to Re: Substitution question
by broquaint
in thread Substitution question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |