this will work!  thanks!
one more question...

I am setting an array up to be the output of a system app command like 
this

my @ftapes = system (evmvol -w label_state=3|grep barcode");
print $ftapes[0];

it prints everything...meaning 5 lines. Or when I say print $ftapes[0,1] 
it errors saying 

"my" variable @ftapes masks earlier declaration in same scope at 
foreign_tape_ck.pl
Multidimensional syntax $ftapes[0,1] not supported at foreign_tape_ck.pl 
line 2.
Use of uninitialized value in print at foreign_tape_ck.pl line 26.
foreign_tape_ck.pl syntax OK


 
what I want is for 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 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 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. Smith
> OhioHealth IT
> UNIX / TSM / EDM Teams
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to