[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: OT : perl to do this?
- From: Brian <signal shreve net>
- To: redhat-list redhat com
- Subject: Re: OT : perl to do this?
- Date: Thu, 2 Mar 2000 23:03:15 -0600 (CST)
On Fri, 3 Mar 2000, ::--Koshy Kerteya--~!~ wrote:
> Hi,
>
> Suppose I have a string of "AAAABCCCDD"
> And I wanna use perl to convert this to A!4BC!3DD
> what should I do ?
> Is there a ready function (grep???) to achieve this ?
yes perl can do this.
their is no built in function to just magically transform as you have
above. It would take a little code. Why is it:
AAAABCCCDD A!4BC!3DD
and not
AAAABCCCDD A!4BC!3D!2
I mean if its 1 character, just print it, if its two chars just print it?
then if its more than 2 do the char!num thing?
>
> Thanks for any help on this!!
>
>
> --
> To unsubscribe: mail redhat-list-request redhat com with "unsubscribe"
> as the Subject.
>
-----------------------------------------------------
Brian Feeny (BF304) signal shreve net
318-222-2638 x 109 http://www.shreve.net/~signal
Network Administrator ShreveNet Inc. (ASN 11881)
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]