in reply to Can't use string ("0") as a HASH ref while "strict refs" problem
You have not shown us a small, self-contained example that reproduces the problem.
Most likely, the problem is that your datastructure is not what you think it is, and/or it doesn't match the way your code tries to use it. In the code path leading up to the problematic line, you output the variables $RC and< c>$cds</c> and others. Maybe you can share the values that you see there with us.
Also very good for visualizing a data structure is the module Data::Dumper. Print out what Perl has as your data structure using
use Data::Dumper; print Dumper \%hash_geno_group;
If the output from Data::Dumper is too large, reduce the data you store into %hash_geno_group and store only the data where the problem happens.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can't use string ("0") as a HASH ref while "strict refs" problem
by etricaen (Novice) on Apr 12, 2016 at 09:54 UTC | |
by Corion (Patriarch) on Apr 12, 2016 at 10:02 UTC | |
by etricaen (Novice) on Apr 12, 2016 at 11:21 UTC |