Re: tr question (probably wrong list to ask, but ...)

[email protected] (Doug McNutt)
Newsgroups perl.macosx
Message-ID <p05100308c376806cf614@[192.168.1.14]>
At 21:29 -0500 11/30/07, Chas. Owens wrote:
>The tr/// operator does not take a regex, it takes two strings.

Yep. Damn. What I meant to type is
 $line =~ s/\+/ /g;

But that does explain why there was no error message.

Looking at Joel's code the substitute might still be the way to go.


-- 

--> From the U S of A, the only socialist country that refuses to admit it. <--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.