Hi all,


I have a string which contains spaces. I need to replace those spaces
with underscore, so I have written command like this



$string="fsdfsdfsdf fsdfsdfsdf";

chomp($string1 = ($string =~ s/\s+$/_/g));

print "$string1\n";



but still $string1 is not printing proper result. Result should be
"fsdfsdfsdf_fsdfsdfsdf"



please help/suggest.



Regards

Irf





This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply 
e-mail and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing 
or copying of this email or any action taken in reliance on this e-mail is 
strictly
prohibited and may be unlawful.

Reply via email to