assume the following code:

my $output = qx{systemcall};

assume that the output of the systemcall looks something like this

name\n
value\n
name\n
value\n
name\n
value\n
name\n
value\n
name\n
value\n
name\n
value\n
...

what like to do is get the name/value pairs into a hash of some sort

split wants to split on EACH "\n"

I think what I need to do is split every other "\n" and then go back and split each name\nvalue pair.

But I'm open to suggestions about HOW to accomplish this.

Thanks.

--
Rance Hall
System Administrator
Nebraska Turkey Growers
1-308-468-5711, ext. 106
[EMAIL PROTECTED]



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