Re: t character in regular expression

2012-10-25 Thread Uri Guttman
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

Re: t character in regular expression

2012-10-25 Thread Andy Bach
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

Re: t character in regular expression

2012-10-25 Thread Lawrence Statton
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

t character in regular expression

2012-10-25 Thread Weidner, Ron
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