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 multidimensional arrays, so how do I
implement this using system?

Multi-dimensional arrays are possible in Perl, with references. If you want to talk about that, please send a new message asking your questions about that topic.


You don't do what you show with system() because that's not what it's for. Backticks fill that role.

James


-- 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