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?


Derek B. Smith
OhioHealth IT
UNIX / TSM / EDM Teams






James Edward Gray II <[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 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 print $ftapes [0,1] mean print element 0 and element 1 or address 
> 0,1
> am I confusing a normal array with a MDarray?

Perl arrays are not multidimensional.  Using references though, we can 
get there.

Backticks return LINES, not fields.  If we want to break them down, 
we'll need to do that.

Can you show a sample output of `evmvol -w label_state`?

James



Reply via email to