Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Adding missing values into a hashby Biopolete (Initiate) |
on Jun 19, 2014 at 14:32 UTC ( [id://1090475]=note: print w/replies, xml ) | Need Help?? |
Thank you very much for your answer :)
Your answer seems quite interesting but I don't know why but I obtain too many "NA". With de first part of the script I obtain for example AA=> NA, NA,1,2,5,NA,NA,NA,NA,NA instead of AA=> 1,2,5 Perhaps is related with my (undef,%hash) = split /[\t;=]/,$line;because you are spliting 3 times, I don't know.
The final csv is AA => NA,NA,NA AB => NA,NA,NA AC => NA,NA,NA Perhaps is because the problem with de "NA".
In Section
Seekers of Perl Wisdom
|
|