On 10/25/2012 05:24 PM, Andy Bach wrote:
On Thu, Oct 25, 2012 at 3:57 PM, Weidner, Ron wrote:
In the following regex what is the "t" character doing?
$linebuf =~ tr/\n/:/;
tr/// is the "translate", er, transliteration operator. Same as
"y///" - from/like a unix util ("tr"). Takes any of the
On Thu, Oct 25, 2012 at 3:57 PM, Weidner, Ron wrote:
> In the following regex what is the "t" character doing?
> $linebuf =~ tr/\n/:/;
tr/// is the "translate", er, transliteration operator. Same as
"y///" - from/like a unix util ("tr"). Takes any of the left hand
side ("\n" here) and turns the
On 10/25/2012 03:57 PM, Weidner, Ron wrote:
In the following regex what is the "t" character doing?
$linebuf =~ tr/\n/:/;
There is no regexp - there is a tr operator
perldoc perlop
tr/SEARCHLIST/REPLACEMENTLIST/cds
y/SEARCHLIST/REPLACEMENTLIST/cds
Transliterates all occurrences of t
In the following regex what is the "t" character doing?
$linebuf =~ tr/\n/:/;
--
Ron
**
This e-mail is intended solely for the intended recipient or recipients. If
this e-mail is addressed to you in error or you othe