Re: array population from system app call

2004-05-25 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > > yes it does thanks! Will you be so kind and answer my other question too? > > maybe I am not understanding when a multidimensional array would be > useful? when are these references useful? > is there a perldoc I can read as well? perldoc perldata perldoc perllol p

Re: array population from system app call

2004-05-25 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > > All, Hello, > was hoping anyone could provide some syntax help. > > I want to populate an array from a system app call like so and then > print out each element. > > my @ftapes = system ("evmvol -w label_state=3|grep barcode"); > print $ftapes[0] > > or > > p

Re: array population from system app call

2004-05-25 Thread James Edward Gray II
On May 25, 2004, at 2:45 PM, [EMAIL PROTECTED] wrote: James, yes it does thanks! Will you be so kind and answer my other question too? Good news. Yes, I will... maybe I am not understanding when a multidimensional array would be useful? when are these references useful? is there a perldoc I can

Re: array population from system app call

2004-05-25 Thread DBSMITH
James Edward Gray II <[EMAIL PROTECTED]> 05/25/2004 03:37 PM To: [EMAIL PROTECTED] cc: Perl Beginners <[EMAIL PROTECTED]> Subject: Re: array population from system app call On May 25, 2004, at 2:24 PM, [EMAIL PROTECTED] wrote: > here is th

Re: array population from system app call

2004-05-25 Thread James Edward Gray II
On May 25, 2004, at 2:24 PM, [EMAIL PROTECTED] wrote: here is the sample output. barcode=E01124 barcode=E01178 barcode=E01195 barcode=E01225 barcode=E01232 maybe I am not understanding when a multidimensional array would be useful? when are these references useful? I really doubt you need a multid

Re: array population from system app call

2004-05-25 Thread DBSMITH
:59 PM To: [EMAIL PROTECTED] cc: Perl Beginners <[EMAIL PROTECTED]> Subject: Re: array population from system app call On May 25, 2004, at 1:34 PM, [EMAIL PROTECTED] wrote: > ok so now I can get all elements printed using > > my @ftape

Re: array population from system app call

2004-05-25 Thread DBSMITH
<[EMAIL PROTECTED]> 05/25/2004 02:59 PM To: [EMAIL PROTECTED] cc: Perl Beginners <[EMAIL PROTECTED]> Subject: Re: array population from system app call On May 25, 2004, at 1:34 PM, [EMAIL PROTECTED] wrote: > ok so now I can get all element

Re: array population from system app call

2004-05-25 Thread James Edward Gray II
On May 25, 2004, at 1:34 PM, [EMAIL PROTECTED] wrote: ok so now I can get all elements printed using my @ftapes = ( ); my @ftapes = `evmvol -w label_state=3|grep barcode`; foreach $_ (@ftapes) { print $_ , "\n"; } so now I want to use multidi

Re: array population from system app call

2004-05-25 Thread DBSMITH
ok so now I can get all elements printed using my @ftapes = ( ); my @ftapes = `evmvol -w label_state=3|grep barcode`; foreach $_ (@ftapes) { print $_ , "\n"; } so now I want to use multidimensional arrays using print $ftapes[0,1] does pri

Re: array population from system app call

2004-05-25 Thread DBSMITH
t: Re: array population from system app call On May 25, 2004, at 1:03 PM, [EMAIL PROTECTED] wrote: > cool, but why doesn't > my @ftapes = system ("evmvol -w label_state=3|grep barcode"); > print $ftapes[0] > > OR > print $ftapes[0,1] > > work? Becaus

Re: array population from system app call

2004-05-25 Thread James Edward Gray II
On May 25, 2004, at 1:03 PM, [EMAIL PROTECTED] wrote: cool, but why doesn't my @ftapes = system ("evmvol -w label_state=3|grep barcode"); print $ftapes[0] OR print $ftapes[0,1] work? Because system() does not return the program's output, it returns exit status. I see that it does not support mult

RE: array population from system app call

2004-05-25 Thread DBSMITH
ms 614-566-4145 "Halkyard, Jim" <[EMAIL PROTECTED]> 05/25/2004 01:58 PM To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> cc: Subject: RE: array population from system app call To capture output you need the backticks my @ou

Re: array population from system app call

2004-05-25 Thread James Edward Gray II
On May 25, 2004, at 12:45 PM, [EMAIL PROTECTED] wrote: All, was hoping anyone could provide some syntax help. I want to populate an array from a system app call like so and then print out each element. my @ftapes = system ("evmvol -w label_state=3|grep barcode"); print $ftapes[0]; You're lookin

RE: array population from system app call

2004-05-25 Thread Halkyard, Jim
2004 18:45 To: [EMAIL PROTECTED] Subject: array population from system app call All, was hoping anyone could provide some syntax help. I want to populate an array from a system app call like so and then print out each element. my @ftapes = system ("evmvol -w label_state=3|grep ba

array population from system app call

2004-05-25 Thread DBSMITH
All, was hoping anyone could provide some syntax help. I want to populate an array from a system app call like so and then print out each element. my @ftapes = system ("evmvol -w label_state=3|grep barcode"); print $ftapes[0] or print $ftapes[0,1] The problem is it prints out all the