My develop env is :
OS : win7 64bit
Perl : activestate perl 5.16.3(32 bit)
List::Moreutil : 0.408 build from cpan not PPM.
Regards
-----邮件原件-----
发件人: 楼颖 [mailto:louying@pwrd.com]
发送时间: 2015年3月20日 9:10
收件人: 'bug-List-MoreUtils@rt.cpan.org'
主题: 答复: [rt.cpan.org #102885] uniq function bug
Follow is section of my big program:
use DDP;
use List::MoreUtils qw(uniq)
.....
@cfg_array = grep { $_ =~ /^\d{7}.*/ } @cfg_array;
p @cfg_array;
@cfg_array = uniq @cfg_array;
p @cfg_array;
exit;
.....
I gen the following output :
[
[0] "1603601,20150319",
[1] "1600581,20150319",
[2] "0300247,20150319",
[3] "0300092,20150319",
[4] "0002694,20150319",
[5] "0002663,20150319",
[6] "0002325,20150319",
[7] "0002093,20150319"
] (tied to Tie::File)
[
[0] "1603601,20150319"
] (tied to Tie::File)
This just happen in List::MoreUtils(0.408), 0.406 work fine.
Regards
-----邮件原件-----
发件人: Jens Rehsack via RT [mailto:bug-List-MoreUtils@rt.cpan.org]
发送时间: 2015年3月19日 19:38
收件人: 楼颖
主题: [rt.cpan.org #102885] uniq function bug
<URL:
https://rt.cpan.org/Ticket/Display.html?id=102885 >
perl -MData::Dumper -MList::MoreUtils=uniq -e 'my @a = qw(1603601,20150319 1600581,20150319 0300247,20150319 0300092,20150319 0002694,20150319 0002663,20150319 0002325,20150319 0002093,20150319); print Dumper \@a; print Dumper [uniq @a]'
$VAR1 = [
'1603601,20150319',
'1600581,20150319',
'0300247,20150319',
'0300092,20150319',
'0002694,20150319',
'0002663,20150319',
'0002325,20150319',
'0002093,20150319'
];
$VAR1 = [
'1603601,20150319',
'1600581,20150319',
'0300247,20150319',
'0300092,20150319',
'0002694,20150319',
'0002663,20150319',
'0002325,20150319',
'0002093,20150319'
];
I don't see any problem