Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Error Unitialized value and use

by kcott (Archbishop)
on Dec 08, 2015 at 06:15 UTC ( [id://1149644]=note: print w/replies, xml ) Need Help??


in reply to Error Unitialized value and use

G'day tryingnottofailmytes,

Well, you do initialize them near the beginning of your script:

my $annotation = ''; my $dna = '';

Their next appearance in your script is:

($annotation, $dna) = ($record =~ /^(LOCUS.*ORIGIN\s*\n)(.*)\/\/\n/s);

where, presumably, you're setting both to undef (i.e. uninitialized).

When you then use them in the print statement on the following line:

print "$annotation, $dna\n";

you get a warning about this.

For the other part of your question, see the use documentation.

— Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-25 15:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found