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

[email protected] ("Chas. Owens")
Newsgroups perl.macosx
Message-ID <[email protected]>
On Nov 30, 2007 7:33 PM, Joel Rees <[email protected]> wrote:
> This is probably the wrong list for this question, but is anyone
> willing to give me a clue why
>
> $line =~ tr/+/ /;
>
> would clip out the lead bytes of a shift-JIS string in a cgi script?
snip

The only thing that should do is replace occurrences of '+' with ' '
in $line.  You can read more about the tr/// operator in perldoc
perlop.
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.