Re: toggle the case

2003-01-02 Thread John W. Krahn
Rob Dixon wrote: > > Once more my apologies. I was in a rush this morning and shouldn't have > posted in haste. Thanks to John I now understand the question :-/ FWIW my > solution is the same as John's but I put a subroutine around the tr//: > > sub SwapUL { (my $s = shift) =~ tr/A-Za-z/a-zA-

Re: toggle the case

2003-01-02 Thread Rob Dixon
Something about 'red rags' and 'bulls' comes to mind ... :) /R -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: toggle the case

2003-01-02 Thread Rob Dixon
Hi John See in-line "John W. Krahn" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Rob Dixon wrote: > > > > "John W. Krahn" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Prasad K M wrote: > > > > > > > > I want to

Re: toggle the case

2003-01-02 Thread Rob Dixon
e part or > atleast i dont know how to do it !! > > --prasad > > > - Original Message - > From: "John W. Krahn" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, January 02, 2003 2:21 PM > Subject: Re: toggle the case > > > >

Re: toggle the case

2003-01-02 Thread Paul Johnson
On Thu, Jan 02, 2003 at 02:32:34AM -0800, John W. Krahn wrote: > Rob Dixon wrote: > > > > "John W. Krahn" <[EMAIL PROTECTED]> wrote in message > > > $ perl -le'$_ = "This Is A Mixed Case Sentence."; tr/a-zA-Z/A-Za-z/; > > > print' > > > tHIS iS a mIXED cASE sENTENCE. > > > > Hmm. Sometimes there

Re: toggle the case

2003-01-02 Thread George P.
On Thu, 2 Jan 2003, John W. Krahn wrote: > Rob Dixon wrote: > > > > "John W. Krahn" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Prasad K M wrote: > > > > > > > > I want to read a file and print all the text , but reverse the case. > > > > So all sma

Re: toggle the case

2003-01-02 Thread John W. Krahn
Prasad K M wrote: > > From: "John W. Krahn" <[EMAIL PROTECTED]> > > > Prasad K M wrote: > > > > > > I want to read a file and print all the text , but reverse the case. > > > So all small will become CAPS and CAPS will be small . > > > The problem is toggling the case. Any idea as how to accompli

Re: toggle the case

2003-01-02 Thread John W. Krahn
Rob Dixon wrote: > > "John W. Krahn" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Prasad K M wrote: > > > > > > I want to read a file and print all the text , but reverse the case. > > > So all small will become CAPS and CAPS will be small . > > > The pro

Re: toggle the case

2003-01-02 Thread Rob Dixon
a-zA-Z/A-Za-z/; print; } HTH, Rob - Original Message - From: "Prasad K M" <[EMAIL PROTECTED]> To: "Rob Dixon" <[EMAIL PROTECTED]> Sent: Thursday, January 02, 2003 10:04 AM Subject: Re: toggle the case > thanks... > i am trying to search

Re: toggle the case

2003-01-02 Thread Prasad K M
t; <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 02, 2003 2:21 PM Subject: Re: toggle the case > Prasad K M wrote: > > > > Hi, > > Hello, > > > I want to read a file and print all the text , but reverse the case. > > > >

Re: toggle the case

2003-01-02 Thread Rob Dixon
Hmm. Sometimes there's only one way to do it :) /R "John W. Krahn" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Prasad K M wrote: > > > > Hi, > > Hello, > > > I want to read a file and print all the text , but reverse the case. > > > > So all small will bec

Re: toggle the case

2003-01-02 Thread Rob Dixon
Assuming we're not using unicode here, tr/A-Za-z/a-zA-Z/ Cheers, Rob "Prasad K M" <[EMAIL PROTECTED]> wrote in message 013101c2b23b$68b45ae0$[EMAIL PROTECTED]">news:013101c2b23b$68b45ae0$[EMAIL PROTECTED]... Hi, I want to read a file and print all the text , but reverse the case. So all s

Re: toggle the case

2003-01-02 Thread John W. Krahn
Prasad K M wrote: > > Hi, Hello, > I want to read a file and print all the text , but reverse the case. > > So all small will become CAPS and CAPS will be small . > > The problem is toggling the case. Any idea as how to accomplish it ? $ perl -le'$_ = "This Is A Mixed Case Sentence."; tr/a-zA

toggle the case

2003-01-02 Thread Prasad K M
Hi, I want to read a file and print all the text , but reverse the case. So all small will become CAPS and CAPS will be small . The problem is toggling the case. Any idea as how to accomplish it ? Thanks in advance --prasad