birdy has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Use of uninitialized value error
by ikegami (Patriarch) on Jul 04, 2011 at 20:05 UTC | |
by sumeetgrover (Monk) on Jul 04, 2011 at 20:14 UTC | |
by birdy (Initiate) on Jul 04, 2011 at 20:20 UTC | |
by ikegami (Patriarch) on Jul 04, 2011 at 20:36 UTC | |
by birdy (Initiate) on Jul 04, 2011 at 20:42 UTC | |
by ikegami (Patriarch) on Jul 04, 2011 at 20:57 UTC | |
by ikegami (Patriarch) on Jul 04, 2011 at 20:52 UTC | |
by birdy (Initiate) on Jul 04, 2011 at 20:35 UTC | |
by sumeetgrover (Monk) on Jul 04, 2011 at 20:46 UTC | |
|
Re: Use of uninitialized value error
by bimleshsharma (Beadle) on Jul 05, 2011 at 06:44 UTC | |
by chromatic (Archbishop) on Jul 05, 2011 at 06:54 UTC | |
by lidden (Curate) on Jul 05, 2011 at 14:28 UTC |