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
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
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
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
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
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
- 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