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
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
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
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
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
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
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
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
> > 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
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
>
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
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
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
13 matches
Mail list logo