Re: complementing a scalar

2002-05-26 Thread mark
"This means: Take all the characters *not* in the SEARCHLIST and look for those." In my case, sometimes the shortest distance between 2 points is a circle. It finally sank in sometime yesterday and in celebration I spent the entire evening and most of the night pouring over perldoc. My problem

Re: complementing a scalar

2002-05-26 Thread Elias Assmann
On Sat, 25 May 2002, mark wrote: > What is happening here exactly and what precisely does the /c do in this > statement? I've had a couple of answers that I do not understand and thus > far I've been told that /c "complements" the SearchPattern. OK I'm sorry that my original reply didn't help

Re: complementing a scalar

2002-05-25 Thread John W. Krahn
Mark wrote: > > HI, Hello, > Using /c in conjuction to tr/// as stated in 'perlop' complements the > searchlist. Is this to mean that the scalar in $val=~tr/this//c is also > scanned for any values of t,h,i or s that may be interpreted as negative > values of those character representations?

Re: complementing a scalar

2002-05-25 Thread drieux
On Saturday, May 25, 2002, at 08:18 , mark wrote: [..] > Actually this goes back to my initial question about this: > > $name =~ tr/a-zA-Z0-9-_ .,:;'&$#@!*()?-//cd; [..] > So my question is (drumroll) : Do I take it to mean that /c also adds the > negative values of the given SearchPattern to the

Re: complementing a scalar

2002-05-25 Thread Tagore Smith
mark wrote: > Actually this goes back to my initial question about this: > > $name =~ tr/a-zA-Z0-9-_ .,:;'&$#@!*()?-//cd; > > What is happening here exactly and what precisely does the /c do in this > statement? I've had a couple of answers that I do not understand and thus > far I've been told

Re: complementing a scalar

2002-05-25 Thread mark
> so from your illustration I would presume that > the '/c' option is there so that perl can say > > "my what a facinating transliteration." That is my question exactly /c : Hello pattern1, you look mighty nice today in all your cryptic obscurity. Actually this goes back to my initial quest

Re: complementing a scalar

2002-05-25 Thread drieux
On Saturday, May 25, 2002, at 05:22 , mark wrote: first off let me complement you on raising a question that is not often addressed both in terms of what the documentation 'asserts' and that at times it is not always clear. > $val=~tr/this//c you will forgive me the moment of levity here[1], b

complementing a scalar

2002-05-25 Thread mark
HI, Using /c in conjuction to tr/// as stated in 'perlop' complements the searchlist. Is this to mean that the scalar in $val=~tr/this//c is also scanned for any values of t,h,i or s that may be interpreted as negative values of those character representations? thanks, mark -- To unsubscrib