in reply to the answer to an 'uninitialized value, now how do I implement it?
# Before doing stuff with array my @array = ('') x 8; # do stuff with array # or before returning from function for (@array) { $_ = '' unless defined } #or #for (@array[0..7]) { $_ = '' unless defined } return @array;
|
|---|