i am facing the following error in the cgi.log file:
Use of uninitialized value $FastaSeqOfDataBase in string at anagnos43.pl line 549, <YEASTFASTA> chunk 6408.
The error has to do with this line of my code:
I am trying to understand why is that happening since i have initiliaze all the values (or at least that i think).$HashOfDataBase {"$IdFasta"} = "$FastaSeqOfDataBase";
my %HashOfDataBase = (); my $IdFasta = ""; if($Data=~/^(\S+)\s+\S+\s+.*/) { $IdFasta=$1;#storing name } @ArrayFasta=split '"',$Data; $FastaSeqOfDataBase = $ArrayFasta[2];#storing letters of the alphabet +like a,b,d,e.. #use this if to initiliaze the "$HashOfDataBase {$IdFasta}" if ($Flag == 0) { $Flag = 1; $HashOfDataBase {"$IdFasta"} = ""; } $HashOfDataBase {"$IdFasta"} = "$FastaSeqO +fDataBase";#that is the line of the error
Really many thanks in advance
In reply to Use of uninitialized value error by birdy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |