Checking if your kit is complete... Looks good Writing Makefile for Sort::ArbBiLex Microsoft (R) Program Maintenance Utility Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. cp ArbBiLex.pm blib\lib\Sort\ArbBiLex.pm Microsoft (R) Program Maintenance Utility Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. C:\cpanrun\build\5-10-0\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib\lib', 'blib\arch')" t/*.t t/00_about.............1..1 # Running under perl version 5.010000 for MSWin32 # Win32::BuildNumber 1001 # Current time local: Wed Jan 9 14:08:18 2008 # Current time GMT: Wed Jan 9 22:08:18 2008 # Using Test.pm version 1.25 # # # Sort::ArbBiLex v4.01 # # # Running in a Unicodey world # Running under perl version 5.010000 for MSWin32 # Win32::BuildNumber 1001 # Current time local: Wed Jan 9 22:08:18 2008 # Current time GMT: Wed Jan 9 14:08:18 2008 # Using Test.pm v1.25 ok 1 ok t/10_basic.............1..20 # Running under perl version 5.010000 for MSWin32 # Win32::BuildNumber 1001 # Current time local: Wed Jan 9 14:08:18 2008 # Current time GMT: Wed Jan 9 22:08:18 2008 # Using Test.pm version 1.25 ok 1 Output : Aba ~ aba ~ ax'ub ~ ahub iki ~ ahuba ~ ahubiki ~ hub ~ x'ub Expected: Aba ~ aba ~ ax'ub ~ ahub iki ~ ahuba ~ ahubiki ~ hub ~ x'ub ok 2 ok 3 ok 4 ok 5 ok 6 ok 7 ok 8 ok 9 ok 10 ok 11 ok 12 ok 13 ok 14 ok 15 ok 16 ok 17 ok 18 ok 19 ok 20 ok t/15_basic_source......1..8 # Running under perl version 5.010000 for MSWin32 # Win32::BuildNumber 1001 # Current time local: Wed Jan 9 14:08:18 2008 # Current time GMT: Wed Jan 9 22:08:18 2008 # Using Test.pm version 1.25 ok 1 #: -- two-level multichar: -- #: # Generated by Sort::ArbBiLex v4.01 at Wed Jan 9 22:08:18 2008 GMT #: { # Multi-character mode. So we need a closure for these variables. #: my(%major, %minor); #: @major{"\x20","A","a","b","h","x\x27","i","u"} #: = ("\x00","\x01","\x01","\x02","\x03","\x03","\x04","\x05"); #: @minor{"\x20","A","a","b","h","x\x27","i","u"} #: = ("\x00","\x00","\x01","\x00","\x00","\x01","\x00","\x00"); #: my $glyph_re = join "|", map(quotemeta, #: sort {length($b) <=> length($a)} keys %major); #: # put the longest glyphs first #: #: # Two-level mode #: sub { # change that to "sub whatever {" to name this function #: no locale; # we need the real 8-bit ASCIIbetical sort() #: use strict; #: return #: # map sort map is the Schwartzian Transform. See perlfaq4. #: map { $_->[0] } #: sort { #: $a->[1] cmp $b->[1] || #: do { #: foreach my $x ($a, $b) { #: if( !defined($x->[2]) and defined($x->[0]) ) { #: $x->[2] = join '', #: map $minor{$_}, #: $x->[0] =~ m<($glyph_re)>go; #: #: } #: } #: $a->[2] cmp $b->[2]; # return value of this do-block #: } #: } #: map { [ $_, #: join('', map $major{$_}, m<($glyph_re)>go) # major keymaker #: #: , undef #: ] #: } #: @_; #: } #: } # end of closure. #: #:---- ok 2 #: -- two-level singlechar: -- #: # Generated by Sort::ArbBiLex v4.01 at Wed Jan 9 22:08:18 2008 GMT #: # Single character mode. #: # Two-level mode #: sub { # change that to "sub whatever {" to name this function #: no locale; # we need the real 8-bit ASCIIbetical sort() #: use strict; #: return #: # map sort map is the Schwartzian Transform. See perlfaq4. #: map { $_->[0] } #: sort { #: $a->[1] cmp $b->[1] || #: do { #: foreach my $x ($a, $b) { #: if( !defined($x->[2]) and defined($x->[0]) ) { #: $x->[2] = $x->[0]; #: $x->[2] =~ tr[\x20Aabhxiu][]cd; #: $x->[2] =~ tr[\x20Aabhxiu] #: [\x00\x00\x01\x00\x00\x01\x00\x00]; #: #: } #: } #: $a->[2] cmp $b->[2]; # return value of this do-block #: } #: } #: map { [ $_, #: do { # major keymaker #: my($key) = $_; #: $key =~ tr[\x20Aabhxiu][]cd; #: $key =~ tr[\x20Aabhxiu] #: [\x00\x01\x01\x02\x03\x03\x04\x05]; #: scalar($key); #: } #: #: , undef #: ] #: } #: @_; #: } #: #: #:---- ok 3 #: -- one-level singlechar: -- #: # Generated by Sort::ArbBiLex v4.01 at Wed Jan 9 22:08:18 2008 GMT #: # Single character mode. #: # One-level mode #: sub { # change that to "sub whatever {" to name this function #: no locale; # we need the real 8-bit ASCIIbetical sort() #: use strict; #: return #: # map sort map is the Schwartzian Transform. See perlfaq4. #: map { $_->[0] } #: sort { $a->[1] cmp $b->[1] } #: map { [ $_, #: do { # major keymaker #: my($key) = $_; #: $key =~ tr[\x20Aabhxiu][]cd; #: $key =~ tr[\x20Aabhxiu] #: [\x00\x01\x02\x03\x04\x05\x06\x07]; #: scalar($key); #: } #: #: ] #: } #: @_; #: } #: #: #:---- ok 4 #: -- one-level singlechar: -- #: # Generated by Sort::ArbBiLex v4.01 at Wed Jan 9 22:08:18 2008 GMT #: # Single character mode. #: # One-level mode #: sub { # change that to "sub whatever {" to name this function #: no locale; # we need the real 8-bit ASCIIbetical sort() #: use strict; #: return #: # map sort map is the Schwartzian Transform. See perlfaq4. #: map { $_->[0] } #: sort { $a->[1] cmp $b->[1] } #: map { [ $_, #: do { # major keymaker #: my($key) = $_; #: $key =~ tr[\x20Aabhxiu][]cd; #: $key =~ tr[\x20Aabhxiu] #: [\x00\x01\x02\x03\x04\x05\x06\x07]; #: scalar($key); #: } #: #: ] #: } #: @_; #: } #: #: #:---- ok 5 #: -- variant one-level singlechar: -- #: # Generated by Sort::ArbBiLex v4.01 at Wed Jan 9 22:08:18 2008 GMT #: # Single character mode. #: # One-level mode #: sub { # change that to "sub whatever {" to name this function #: no locale; # we need the real 8-bit ASCIIbetical sort() #: use strict; #: return #: # map sort map is the Schwartzian Transform. See perlfaq4. #: map { $_->[0] } #: sort { $a->[1] cmp $b->[1] } #: map { [ $_, #: do { # major keymaker #: my($key) = $_; #: $key =~ tr[\x20Aabhxiu][]cd; #: $key =~ tr[\x20Aabhxiu] #: [\x00\x01\x02\x03\x04\x05\x06\x07]; #: scalar($key); #: } #: #: ] #: } #: @_; #: } #: #: #:---- ok 6 #: -- one-level multichar: -- #: # Generated by Sort::ArbBiLex v4.01 at Wed Jan 9 22:08:18 2008 GMT #: { # Multi-character mode. So we need a closure for these variables. #: my(%major); # just one-level mode, tho. #: @major{"\x20","A","a","b","h","xh","i","u"} #: = ("\x00","\x01","\x02","\x03","\x04","\x05","\x06","\x07"); #: my $glyph_re = join "|", map(quotemeta, #: sort {length($b) <=> length($a)} keys %major); #: # put the longest glyphs first #: #: # One-level mode #: sub { # change that to "sub whatever {" to name this function #: no locale; # we need the real 8-bit ASCIIbetical sort() #: use strict; #: return #: # map sort map is the Schwartzian Transform. See perlfaq4. #: map { $_->[0] } #: sort { $a->[1] cmp $b->[1] } #: map { [ $_, #: join('', map $major{$_}, m<($glyph_re)>go) # major keymaker #: #: ] #: } #: @_; #: } #: } # end of closure. #: #:---- ok 7 #: -- variant one-level multichar: -- #: # Generated by Sort::ArbBiLex v4.01 at Wed Jan 9 22:08:18 2008 GMT #: { # Multi-character mode. So we need a closure for these variables. #: my(%major); # just one-level mode, tho. #: @major{"\x20","A","a","b","h","xh","i","u"} #: = ("\x00","\x01","\x02","\x03","\x04","\x05","\x06","\x07"); #: my $glyph_re = join "|", map(quotemeta, #: sort {length($b) <=> length($a)} keys %major); #: # put the longest glyphs first #: #: # One-level mode #: sub { # change that to "sub whatever {" to name this function #: no locale; # we need the real 8-bit ASCIIbetical sort() #: use strict; #: return #: # map sort map is the Schwartzian Transform. See perlfaq4. #: map { $_->[0] } #: sort { $a->[1] cmp $b->[1] } #: map { [ $_, #: join('', map $major{$_}, m<($glyph_re)>go) # major keymaker #: #: ] #: } #: @_; #: } #: } # end of closure. #: #:---- ok 8 # Bye! ok t/20_unicode...........1..20 # Running under perl version 5.010000 for MSWin32 # Win32::BuildNumber 1001 # Current time local: Wed Jan 9 14:08:19 2008 # Current time GMT: Wed Jan 9 22:08:19 2008 # Using Test.pm version 1.25 ok 1 Output : Aba ~ aba ~ a€ub ~ ahub iki ~ ahuba ~ ahubiki ~ hub ~ €ub Expected: Aba ~ aba ~ a€ub ~ ahub iki ~ ahuba ~ ahubiki ~ hub ~ €ub ok 2 ok 3 ok 4 ok 5 ok 6 ok 7 ok 8 ok 9 ok 10 ok 11 ok 12 ok 13 ok 14 ok 15 ok 16 ok 17 ok 18 ok 19 ok 20 ok t/25_unicode_source....1..8 # Running under perl version 5.010000 for MSWin32 # Win32::BuildNumber 1001 # Current time local: Wed Jan 9 14:08:19 2008 # Current time GMT: Wed Jan 9 22:08:19 2008 # Using Test.pm version 1.25 ok 1 #: -- two-level multichar: -- #: # Generated by Sort::ArbBiLex v4.01 at Wed Jan 9 22:08:19 2008 GMT #: # Single character mode. #: # Two-level mode #: sub { # change that to "sub whatever {" to name this function #: no locale; # we need the real 8-bit ASCIIbetical sort() #: use strict; #: return #: # map sort map is the Schwartzian Transform. See perlfaq4. #: map { $_->[0] } #: sort { #: $a->[1] cmp $b->[1] || #: do { #: foreach my $x ($a, $b) { #: if( !defined($x->[2]) and defined($x->[0]) ) { #: $x->[2] = $x->[0]; #: $x->[2] =~ tr[\x20Aabh\x{20ac}iu][]cd; #: $x->[2] =~ tr[\x20Aabh\x{20ac}iu] #: [\x00\x00\x01\x00\x00\x01\x00\x00]; #: #: } #: } #: $a->[2] cmp $b->[2]; # return value of this do-block #: } #: } #: map { [ $_, #: do { # major keymaker #: my($key) = $_; #: $key =~ tr[\x20Aabh\x{20ac}iu][]cd; #: $key =~ tr[\x20Aabh\x{20ac}iu] #: [\x00\x01\x01\x02\x03\x03\x04\x05]; #: scalar($key); #: } #: #: , undef #: ] #: } #: @_; #: } #: #: #:---- ok 2 #: -- two-level singlechar: -- #: # Generated by Sort::ArbBiLex v4.01 at Wed Jan 9 22:08:19 2008 GMT #: # Single character mode. #: # Two-level mode #: sub { # change that to "sub whatever {" to name this function #: no locale; # we need the real 8-bit ASCIIbetical sort() #: use strict; #: return #: # map sort map is the Schwartzian Transform. See perlfaq4. #: map { $_->[0] } #: sort { #: $a->[1] cmp $b->[1] || #: do { #: foreach my $x ($a, $b) { #: if( !defined($x->[2]) and defined($x->[0]) ) { #: $x->[2] = $x->[0]; #: $x->[2] =~ tr[\x20Aabhxiu][]cd; #: $x->[2] =~ tr[\x20Aabhxiu] #: [\x00\x00\x01\x00\x00\x01\x00\x00]; #: #: } #: } #: $a->[2] cmp $b->[2]; # return value of this do-block #: } #: } #: map { [ $_, #: do { # major keymaker #: my($key) = $_; #: $key =~ tr[\x20Aabhxiu][]cd; #: $key =~ tr[\x20Aabhxiu] #: [\x00\x01\x01\x02\x03\x03\x04\x05]; #: scalar($key); #: } #: #: , undef #: ] #: } #: @_; #: } #: #: #:---- ok 3 #: -- one-level singlechar: -- #: # Generated by Sort::ArbBiLex v4.01 at Wed Jan 9 22:08:19 2008 GMT #: # Single character mode. #: # One-level mode #: sub { # change that to "sub whatever {" to name this function #: no locale; # we need the real 8-bit ASCIIbetical sort() #: use strict; #: return #: # map sort map is the Schwartzian Transform. See perlfaq4. #: map { $_->[0] } #: sort { $a->[1] cmp $b->[1] } #: map { [ $_, #: do { # major keymaker #: my($key) = $_; #: $key =~ tr[\x20Aabhxiu][]cd; #: $key =~ tr[\x20Aabhxiu] #: [\x00\x01\x02\x03\x04\x05\x06\x07]; #: scalar($key); #: } #: #: ] #: } #: @_; #: } #: #: #:---- ok 4 #: -- one-level singlechar: -- #: # Generated by Sort::ArbBiLex v4.01 at Wed Jan 9 22:08:19 2008 GMT #: # Single character mode. #: # One-level mode #: sub { # change that to "sub whatever {" to name this function #: no locale; # we need the real 8-bit ASCIIbetical sort() #: use strict; #: return #: # map sort map is the Schwartzian Transform. See perlfaq4. #: map { $_->[0] } #: sort { $a->[1] cmp $b->[1] } #: map { [ $_, #: do { # major keymaker #: my($key) = $_; #: $key =~ tr[\x20Aabhxiu][]cd; #: $key =~ tr[\x20Aabhxiu] #: [\x00\x01\x02\x03\x04\x05\x06\x07]; #: scalar($key); #: } #: #: ] #: } #: @_; #: } #: #: #:---- ok 5 #: -- variant one-level singlechar: -- #: # Generated by Sort::ArbBiLex v4.01 at Wed Jan 9 22:08:19 2008 GMT #: # Single character mode. #: # One-level mode #: sub { # change that to "sub whatever {" to name this function #: no locale; # we need the real 8-bit ASCIIbetical sort() #: use strict; #: return #: # map sort map is the Schwartzian Transform. See perlfaq4. #: map { $_->[0] } #: sort { $a->[1] cmp $b->[1] } #: map { [ $_, #: do { # major keymaker #: my($key) = $_; #: $key =~ tr[\x20Aabhxiu][]cd; #: $key =~ tr[\x20Aabhxiu] #: [\x00\x01\x02\x03\x04\x05\x06\x07]; #: scalar($key); #: } #: #: ] #: } #: @_; #: } #: #: #:---- ok 6 #: -- one-level multichar: -- #: # Generated by Sort::ArbBiLex v4.01 at Wed Jan 9 22:08:19 2008 GMT #: # Single character mode. #: # One-level mode #: sub { # change that to "sub whatever {" to name this function #: no locale; # we need the real 8-bit ASCIIbetical sort() #: use strict; #: return #: # map sort map is the Schwartzian Transform. See perlfaq4. #: map { $_->[0] } #: sort { $a->[1] cmp $b->[1] } #: map { [ $_, #: do { # major keymaker #: my($key) = $_; #: $key =~ tr[\x20Aabh\x{20ac}iu][]cd; #: $key =~ tr[\x20Aabh\x{20ac}iu] #: [\x00\x01\x02\x03\x04\x05\x06\x07]; #: scalar($key); #: } #: #: ] #: } #: @_; #: } #: #: #:---- ok 7 #: -- variant one-level multichar: -- #: # Generated by Sort::ArbBiLex v4.01 at Wed Jan 9 22:08:19 2008 GMT #: # Single character mode. #: # One-level mode #: sub { # change that to "sub whatever {" to name this function #: no locale; # we need the real 8-bit ASCIIbetical sort() #: use strict; #: return #: # map sort map is the Schwartzian Transform. See perlfaq4. #: map { $_->[0] } #: sort { $a->[1] cmp $b->[1] } #: map { [ $_, #: do { # major keymaker #: my($key) = $_; #: $key =~ tr[\x20Aabh\x{20ac}iu][]cd; #: $key =~ tr[\x20Aabh\x{20ac}iu] #: [\x00\x01\x02\x03\x04\x05\x06\x07]; #: scalar($key); #: } #: #: ] #: } #: @_; #: } #: #: #:---- ok 8 # Bye! ok All tests successful. Files=5, Tests=57, 1 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 CPU) Microsoft (R) Program Maintenance Utility Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. Installing C:\cpanrun\build\5-10-0\html\site\lib\Sort\ArbBiLex.html Installing C:\cpanrun\build\5-10-0\site\lib\Sort\ArbBiLex.pm Appending installation info to C:\cpanrun\build\5-10-0\lib/perllocal.pod