On 4/30/10 Fri  Apr 30, 2010  9:55 AM, "Paul" <opensou...@unixoses.com>
scribbled:

> On Fri, April 30, 2010 12:37 pm, Jim Gibson wrote:

>> If you do need to change '/' to '\':
>> 
>>     $path =~ s{ / }{\\}gx;

> 
> I'll have to remember that when tr///d doesn't work!  Thanks.

Why are you using the d modifier, which means "Delete found but unreplaced
characters"? Since you are replacing only one character with another, adding
d is unnecessary and therefore confusing, although probably benign.



-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to