in reply to Re^2: symbolic ref error
in thread symbolic ref error
...put a value into an array that is named after the conditions...
Is there any reason why you can't use a hash array instead of a symbolic reference to a regular array (and use strict)? E.g.:
my $seq = 'KLLS3'; my $point = 'weight'; my $index = 4; my $mean = 1.443; my %hash; sorting($seq, $index, $point, $mean); sub sorting { if ($_[0] eq "KLLS3_LT.V4_0") { if ($_[1] == "1") {push @{$hash{$_[2]}{$_[0]}{$_[1]}}, $_[3];} } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: symbolic ref error
by Lhamo_rin (Friar) on Aug 10, 2005 at 18:26 UTC | |
by runrig (Abbot) on Aug 10, 2005 at 18:31 UTC |