Subject: | uniq examples are incorrect |
The docs for uniq include these examples:
# returns '', 'S1', A5' and complains about "Use of uninitialized value"
my @s = distinct '', undef, 'S1', 'A5'
# returns undef, 'S1', A5' and complains about "Use of uninitialized value"
my @w = uniq undef, '', 'S1', 'A5'
These examples are incorrect. uniq will treat undef and '' as distinct, and will not produce any warnings.