Re: Entering array output

2010-07-22 Thread perl_learner
Hi John, Thanks for your reply. On Jul 18, 6:48 pm, jwkr...@shaw.ca ("John W. Krahn") wrote: > perl_learner wrote: > > Hi, > > Hello, > > > > > > > #!/usr/bin/perl > > #!/usr/bin/perl -w > > > my @result=`find ../src -name '*Msgs.msg'`; > > #print "MSG direictories are: $result[0]"; > > > foreach

Re: Entering array output

2010-07-18 Thread John W. Krahn
perl_learner wrote: Hi, Hello, #!/usr/bin/perl #!/usr/bin/perl -w my @result=`find ../src -name '*Msgs.msg'`; #print "MSG direictories are: $result[0]"; foreach my $res (@result) { print "$res"; #prints the array value of result } I have the array value as: ../src/libfile/src/FileRealMsgs

Re: Entering array output

2010-07-18 Thread Chas. Owens
On Fri, Jul 16, 2010 at 17:43, perl_learner wrote: > Hi, > > #!/usr/bin/perl > #!/usr/bin/perl -w > > my @result=`find ../src -name '*Msgs.msg'`; > #print "MSG direictories are: $result[0]"; > > foreach my $res (@result) { > print "$res"; #prints the array value of result > } > > I have the array

Entering array output

2010-07-18 Thread perl_learner
Hi, #!/usr/bin/perl #!/usr/bin/perl -w my @result=`find ../src -name '*Msgs.msg'`; #print "MSG direictories are: $result[0]"; foreach my $res (@result) { print "$res"; #prints the array value of result } I have the array value as: ../src/libfile/src/FileRealMsgs.msg ../src/libl/src/RRLRealMsgs

Re: array output

2004-05-24 Thread DBSMITH
or each element to hold 1 line. Will the diamond operator work here? derek "Paul D. Kraus" <[EMAIL PROTECTED]> 05/21/2004 04:39 PM To: [EMAIL PROTECTED] cc: [EMAIL PROTECTED] Subject:Re: array output Not completely sure what you ar

RE: array output

2004-05-23 Thread Marcos . Rebelo
PROTECTED] Sent: Friday, May 21, 2004 8:08 PM To: Perl Beginners Mailing List Subject: array output All, I have an array of 40 elements and I want to run a system app command against all the elements simultaneously ...well not line by line as in a for loop. I have tried does anyone know

Re: array output

2004-05-21 Thread Paul D. Kraus
Not completely sure what you are trying to do but you can join all the elements like this my $mystring = join " ", @myarray; this will join each elements into one string seperated by a space. Paul On Fri, May 21, 2004 at 02:07:56PM -0400, [EMAIL PROTECTED] wrote: > All, > > I have an array of

array output

2004-05-21 Thread DBSMITH
All, I have an array of 40 elements and I want to run a system app command against all the elements simultaneously ...well not line by line as in a for loop. I have tried does anyone know how to spit out all 40 elements so the app command does not eject tapes one by one? thanks Derek B. Sm

RE: getting rid of additional space in array output

2002-02-25 Thread Jonathan E. Paton
> > I need some help badly on this slight technicality > > I am facing. I am reading every line of input > > into a scalar variable, spllitting on null, to get > > every character into an array, and then splicing. > > When I print the array elements of interest, a > > space is appended to the inp

Re: getting rid of additional space in array output

2002-02-24 Thread John W. Krahn
M Z wrote: > > hello Hello, > I need some help badly on this slight technicality I > am facing. I am reading every line of input into a > scalar variable, spllitting on null, to get every > character into an array, and then splicing. When I > pring the array elements of interest, a space is >

RE: getting rid of additional space in array output

2002-02-24 Thread Timothy Johnson
I believe the print command prints a space between list elements by default. You could always try something like this: foreach(@left){ print F1 $_; } -Original Message- From: M z To: [EMAIL PROTECTED] Sent: 2/24/02 8:49 PM Subject: getting rid of additional space in array output

getting rid of additional space in array output

2002-02-24 Thread M z
hello I need some help badly on this slight technicality I am facing. I am reading every line of input into a scalar variable, spllitting on null, to get every character into an array, and then splicing. When I pring the array elements of interest, a space is appended to the input. Please help

Array output

2002-01-10 Thread Frank Newland
Readers: I'm running a query on a list (input file) and capturing the first column of the results to an array. When I print the array, the first element is null why is this ?? There are 5 items in my list, 6 rows of output. My goal is to do more processing on @skulisting (which requires not havi