Skip Menu |

This queue is for tickets about the Array-Uniq CPAN distribution.

Report information
The Basics
Id: 34267
Status: new
Priority: 0/
Queue: Array-Uniq

People
Owner: Nobody in particular
Requestors: john.westlund [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.02
Fixed in: (no value)



Subject: distinct function does not return last element if it is distinct
If you pass an array to distinct with the last value being distinct it is not returned by distinct: my @foo = qw(a a b c); my @out = distinct(@foo); for (@out) { print "$_\n"; } outputs: b need another: push(@out,$prev) if ($ctr == 1); right before the return of @out.