in reply to Re^2: Annoying 'Use of uninitialized value in concatenation' warning
in thread Annoying 'Use of uninitialized value in concatenation' warning
If you use diagnostics perl will tell you which category the warning belongs to. For example, printing an uninitialised variable yields (the category is in bold):
Perl: perlintro perlretut perldoc Basic debugging checklist Yes, even you can use CPAN
PerlMonks: How do I post a question effectively? Markup in the Monastery How do I post a question effectively? I know what I mean. Why don't you?
General: How To Ask Questions The Smart Way What every computer scientist should know about floating-point arithmetic
To Be Continued...
Use of uninitialized value $x in print atAdditionally, perldiag lists all of perl's warning and error messages.
/home/bri/foo.pl line 14 (#1)
(W uninitialized) An undefined value was used as if it were already
defined. It was interpreted as a "" or a 0, but maybe it was a mistake.
To suppress this warning assign a defined value to your variables.
Perl: perlintro perlretut perldoc Basic debugging checklist Yes, even you can use CPAN
PerlMonks: How do I post a question effectively? Markup in the Monastery How do I post a question effectively? I know what I mean. Why don't you?
General: How To Ask Questions The Smart Way What every computer scientist should know about floating-point arithmetic
To Be Continued...
|
---|
In Section
Seekers of Perl Wisdom