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 multidimensional array here. The first half of all those lines is the same and since you filtered the output to get just that, I assume we can throw it away. You just want the codes after the = sign, right? Let's ask for that:


my @codes = grep s/^barcode=//, `evmvol -w label_state`;

Does that get what you're after?

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