in reply to Array problem

Use a hash with, e.g., status as a key:
if ($array[$i] =~ /(status|max)/) { $hash{$1} = $array1[$i]; $hash{$1} =~ s/^.*://; }

We're not really tightening our belts, it just feels that way because we're getting fatter.

Replies are listed 'Best First'.
Re^2: Array problem
by Anonymous Monk on Jun 19, 2004 at 13:04 UTC
    Thanks Roy
    That worked brilliantly