|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Parsing problemby MB123 (Initiate) |
| on Nov 07, 2012 at 21:48 UTC ( #1002755=perlquestion: print w/ replies, xml ) | Need Help?? |
|
MB123 has asked for the
wisdom of the Perl Monks concerning the following question:
Hi all, I have this large text file in the format shown below -And this code-
However when I run the above code I receive a "Use of uninitialised value ($count or $change) in printf at Script.txt line 33 error. This occurs at any part of the text file that contains a non-synonymous mutation. This code works on another text file I have, and the only difference I can see is that in this example file, strain numbers have a format such as 7521_5#39=A, whereas in the file this code worked for they are written as 7521_5_39=A, i.e. the '#' is replaced with a second '_'. The ideal output from this code would look like this-
Any help would be much appreciated, but please be advised I am very new to perl and programming in general. This code is also not my own work - a code that I had written suffered the same error. Many thanks in advance! MB
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||||||