in reply to searching array of arrays
You could populate it something like this:
and you would get the values for a particular record like this:my %names; while (<>) { chomp; my @line = split /\|/; next unless defined $line[2]; $names{$line[0]} = [@line[1,2]]; }
and change them like this:print "values for bill: $names{'bill'}->[0] , $names{'bill'}->[1]";
(NB: Of course, this solution is no good if you have any duplicate names)$names{'bill'}->[0] = 3;
hth, andy.
|
|---|