Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: Annoying 'Use of uninitialized value in concatenation' warningby JavaFan (Canon) |
on Oct 26, 2011 at 11:59 UTC ( [id://933868]=note: print w/replies, xml ) | Need Help?? |
The reason for having a warning about this is that while undef is a perfectly valid value for a variable, it has no textual representation.Bullshit. There are also characters that have no textual representation, and using them doesn't warn. Note that the warning from the OP isn't even about printing - it's about concatenation. There's a perfectly good reason why most operations warn if one of its operands is undefined, but having no textual representation isn't that reason.
In Section
Seekers of Perl Wisdom
|
|