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
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
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"
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
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
Try something like this:
my $string = "";
my @aa = qw(A C D E F G H I K L M N P Q R S T V W Y);
foreach(@aa){
my $i;
my @strArray = split //,$string;
for($i = 0;defined $strArray[$i];$i++){
my $j;
for($j = 0;defined $strArray[$j];$j++){
if($j == $i){
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