@rows = split(/\n/,$stats); ... $rowcount = scalar(grep {defined $_} @rows);
There is no point in checking for undefined values in @rows because split will only return strings, not undef.
In reply to Re: Problem populating Hash (I think?)
by jwkrahn
in thread Problem populating Hash (I think?)
by bpthatsme
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |