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-
Something about 'red rags' and 'bulls' comes to mind ... :)
/R
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
>
>
> >
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
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
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
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
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
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.
> >
> >
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
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
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
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
14 matches
Mail list logo