Find and replace _ with whitespace

2005-02-27 Thread fad3r
Hi everyone, I would like to search a string for _ and replace it with a whitespace. What is the most efficient way of accomplisihing this? Is it better to use a module, a regular expression, or is there another function I should know about it. I have had great success using the substr function

Re: Find and replace _ with whitespace

2005-02-27 Thread $Bill Luebkert
fad3r wrote: Hi everyone, I would like to search a string for _ and replace it with a whitespace. What is the most efficient way of accomplisihing this? Is it better to use a module, a regular expression, or is there another function I should know about it. I have had great success

RE: Find and replace _ with whitespace

2005-02-27 Thread Charles K. Clarkson
fad3r wrote: : I would like to search a string for _ and replace it with a : whitespace. What is the most efficient way of accomplisihing : this? use transliterate() my $phrase = 'will_look_like_this'; $phrase =~ tr/_/ /; print $phrase; HTH, Charles K. Clarkson -- Mobile Homes

RE: Find and replace _ with whitespace

2005-02-27 Thread Charles K. Clarkson
fad3r [EMAIL PROTECTED] wrote: : Thank you for the response. I am trying to incorporate that : with the rename function. I am not quite sure how to do that. : I am trying to loop over the files twice. Here is what I have; : can you tell me what I am doing wrong? First, try to keep all

Re: Help on Find and Replace

2003-01-31 Thread Randy W. Sims
On 1/31/2003 4:51 AM, Ahmed, Mubariz wrote: Hi, I have problem with find and replace. Below is the script $src=c:\\mub\\mubwork; $inter=c:\\mub\\mubwork\\test\\tets1; $dest=c:\\mubariz\\dpgdata; $inter=~s/$src/$dest/; # Result should be c:\mubariz\dpgdata\test\tets1 $inter=~s/\Q$src\E/$dest

Find and replace

2001-06-15 Thread
Hi Please help!!! I have spent hours doing this I am new... I want to do the following I read every line of the data that is passed to the script. Then I want to check each line for an occurrence of the $ sign. If the $ sign is found I want to replace it with the complete string push

Re: Find and replace

2001-06-15 Thread Sisyphus
- Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 14, 2001 10:35 AM Subject: Find and replace Hi Please help!!! I have spent hours doing this I am new... I want to do the following I read every line of the data that is passed