Sommint like...?
local($,,$\) = (":","\n"); foreach (split /\n/, qx{ xgridstatus -h localhost -A }) { if (my @matches = / (\w+) \s* = \s* (\d+) /x) { print @matches; } }
In reply to Re: Command Parsing
by tobyink
in thread Command Parsing
by jcstech
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |