Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Error message "Use of uninit"

by jdrago999 (Pilgrim)
on Nov 21, 2011 at 18:44 UTC ( #939293=note: print w/replies, xml ) Need Help??


in reply to Error message "Use of uninit"

Also just to clarify - that's a "warning" not an "error" - your program will continue running, but you will see the warning. If you don't want to see warnings about that particular issue (sometimes you know it might be uninitialized but don't care) - you can do this:

#!/usr/bin/perl -w use strict; use warnings 'all'; ...your code... ..and then... no warnings 'uninitialized'; my ($foo, $bar) = split /\s+/, $some_uninitialized_variable;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2020-05-30 19:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (173 votes). Check out past polls.

    Notices?