in reply to What is the best approach to check if a position falls within a target range?
For example, instead of
my @data = @{ $hash{chrN} }; for my $SNP (@data) { ... }
do
for my $SNP (@{ $hash{chrN} }) { ... }
or
my $data_ref = $hash{chrN}; for my $SNP (@$data_ref) { ... }
|
|---|