Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Use of uninitialized value error

by bimleshsharma (Beadle)
on Jul 05, 2011 at 06:44 UTC ( #912760=note: print w/ replies, xml ) Need Help??


in reply to Use of uninitialized value error

Man, you did little mistake at last line. Variable should not put into double/single quote during assignment to another variable. Here last line should be ...

$HashOfDataBase {"$IdFasta"} = $FastaSeqOfDataBase;

instead of ....
$HashOfDataBase {"$IdFasta"} = "$FastaSeqOfDataBase";#that is the line of the error
Hopefully this will resolve your issue.


Comment on Re: Use of uninitialized value error
Re^2: Use of uninitialized value error
by chromatic (Archbishop) on Jul 05, 2011 at 06:54 UTC
    Variable should not put into double/single quote during assignment to another variable. Here last line should be ...

    That's generally good advice, but it's sometimes wrong (sometimes forcing string interpolation of a regex capture is the safest approach) and it won't make a difference in this case.

      You do get a warning if you try to interpolate an undefined variable into a string, but not from assigning it to another variable.

      If that is good or bad in OPs case depends on if it is ok for the variable to be undefined or not.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://912760]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2014-09-20 10:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (158 votes), past polls