Re: String question

2007-09-08 Thread [EMAIL PROTECTED]
On Sep 7, 10:07 am, [EMAIL PROTECTED] (Santana) wrote: > Hei all, > i'am a newbie in PERL and i find a solution for this problem : Just a couple minor procedural points: Please put the subject of your post in the Subject of your post. If you are unsure how to do this try this simple thought exper

Re: String question

2007-09-07 Thread Rodrick Brown
On 9/7/07, Santana <[EMAIL PROTECTED]> wrote: > Hei all, > i'am a newbie in PERL and i find a solution for this problem : > > I have a string "xxx" , i want put ones("1") on left of string, if > this string dont have a length of 20 character. > > Example : > > if i have th string "HELLO" and wo

Re: String question

2007-09-07 Thread Gunnar Hjalmarsson
Santana wrote: Hei all, i'am a newbie in PERL and i find a solution for this problem : I have a string "xxx" , i want put ones("1") on left of string, if this string dont have a length of 20 character. Example : if i have th string "HELLO" and woul like get this ; "111HELLO"

Re: String question

2007-09-07 Thread Xavier Noria
On Sep 7, 2007, at 10:07 AM, Santana wrote: Hei all, i'am a newbie in PERL and i find a solution for this problem : I have a string "xxx" , i want put ones("1") on left of string, if this string dont have a length of 20 character. Example : if i have th string "HELLO" and woul like get

String question

2007-09-07 Thread Santana
Hei all, i'am a newbie in PERL and i find a solution for this problem : I have a string "xxx" , i want put ones("1") on left of string, if this string dont have a length of 20 character. Example : if i have th string "HELLO" and woul like get this ; "111HELLO" How i can this

RE: string question

2002-03-22 Thread Timothy Johnson
Oh, hey, didn't see this response. Ignore mine. This is better. :) I really need to start using substr(). One question, though. Are there any caveats or down sides to using it? -Original Message- From: John W. Krahn To: [EMAIL PROTECTED] Sent: 3/22/02 12:46 PM Subject: Re: s

RE: string question

2002-03-22 Thread Timothy Johnson
f($j == $i){ print "$_"; }else{ print "$strArray[$j]"; } } } } Disclaimer: I can't test this right now, but I'm pretty sure it will work. -Original Message- From: Pedro A Reche Gallardo To: [EMAIL PROTECTED

Re: string question

2002-03-22 Thread John W. Krahn
Pedro A Reche Gallardo wrote: > > Hi All, Hello, > I was trying to generate variations of the 8 character string > "" by changing every character with the elements containing in > an array @aa = ('A', 'B', 'C', 'D'). The way I did it was quite naive, > using a "for" loop that changes t

string question

2002-03-22 Thread Pedro A Reche Gallardo
Hi All, I was trying to generate variations of the 8 character string "" by changing every character with the elements containing in an array @aa = ('A', 'B', 'C', 'D'). The way I did it was quite naive, using a "for" loop that changes the A character at position 1 of the string