in reply to Re^6: uninitialized value in join or string
in thread uninitialized value in join or string
But explaining that just made me realize that you can get the same result with a foreach loop in this case:
That should be more clear. It updates each undefined element of @values to be the empty string.foreach (@values) { $_ = '' unless defined; }
|
|---|