Dear all:
I know there is a string replacement used by s///.
like:
$_=s/\.doc$/\.txt/;
#but above will change the content of $_

Here I have one question about how to replace some part of string A
without changing it and assign the changing result to string B?
like:
$_="test\.doc";
and I want $stringB="test\.txt"; but $_ still keep as "test\.doc";

appreciate your help,
miloody

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to