>%6 .6s< >''< >%6 .6s INVALID<
>%6.6 s< >''< >%6.6 s INVALID<
>%A< >''< >%A INVALID<
->%B< >''< >%B INVALID<
+>%B< >2**32-1< >11111111111111111111111111111111<
+>%+B< >2**32-1< >11111111111111111111111111111111<
+>%#B< >2**32-1< >0B11111111111111111111111111111111<
>%C< >''< >%C INVALID<
>%D< >0x7fffffff< >2147483647< >Synonym for %ld<
>%E< >123456.789< >1.234568E+05< >Like %e, but using upper-case "E"<
>%034b< >2**32-1< >0011111111111111111111111111111111<
>%-34b< >2**32-1< >11111111111111111111111111111111 <
>%-034b< >2**32-1< >11111111111111111111111111111111 <
+>%6b< >12< > 1100<
+>%6.5b< >12< > 01100<
+>%-6.5b< >12< >01100 <
+>%+6.5b< >12< > 01100<
+>% 6.5b< >12< > 01100<
+>%06.5b< >12< > 01100< >0 flag with precision: no effect<
+>%.5b< >12< >01100<
+>%.0b< >0< ><
+>%+.0b< >0< ><
+>% .0b< >0< ><
+>%-.0b< >0< ><
+>%#.0b< >0< ><
+>%#3.0b< >0< > <
+>%#3.1b< >0< > 0<
+>%#3.2b< >0< > 00<
+>%#3.3b< >0< >000<
+>%#3.4b< >0< >0000<
+>%.0b< >1< >1<
+>%+.0b< >1< >1<
+>% .0b< >1< >1<
+>%-.0b< >1< >1<
+>%#.0b< >1< >0b1<
+>%#3.0b< >1< >0b1<
+>%#3.1b< >1< >0b1<
+>%#3.2b< >1< >0b01<
+>%#3.3b< >1< >0b001<
+>%#3.4b< >1< >0b0001<
>%c< >ord('A')< >A<
>%10c< >ord('A')< > A<
>%#10c< >ord('A')< > A< ># modifier: no effect<
>%d< >123456.789< >123456<
>%d< >-123456.789< >-123456<
>%d< >0< >0<
+>%-d< >0< >0<
>%+d< >0< >+0<
+>% d< >0< > 0<
>%0d< >0< >0<
+>%-3d< >1< >1 <
+>%+3d< >1< > +1<
+>% 3d< >1< > 1<
+>%03d< >1< >001<
+>%+ 3d< >1< > +1<
+>% +3d< >1< > +1<
>%.0d< >0< ><
>%+.0d< >0< >+<
+>% .0d< >0< > <
+>%-.0d< >0< ><
+>%#.0d< >0< ><
>%.0d< >1< >1<
>%d< >1< >1<
>%+d< >1< >+1<
>%#3.2d< >1< > 01< ># modifier: no effect<
>%3.2d< >1< > 01<
->%03.2d< >1< >001<
+>%03.2d< >1< > 01< >0 flag with precision: no effect<
>%-3.2d< >1< >01 <
+>%+3.2d< >1< >+01<
+>% 3.2d< >1< > 01<
>%-03.2d< >1< >01 < >zero pad + left just.: no effect<
+>%3.*d< >[2,1]< > 01<
+>%3.*d< >[1,1]< > 1<
+>%3.*d< >[0,1]< > 1<
+>%3.*d< >[-1,1]< > 1<
+>%.*d< >[0,0]< ><
+>%-.*d< >[0,0]< ><
+>%+.*d< >[0,0]< >+<
+>% .*d< >[0,0]< > <
+>%0.*d< >[0,0]< ><
+>%.*d< >[-2,0]< >0<
+>%-.*d< >[-2,0]< >0<
+>%+.*d< >[-2,0]< >+0<
+>% .*d< >[-2,0]< > 0<
+>%0.*d< >[-2,0]< >0<
>%d< >-1< >-1<
+>%-d< >-1< >-1<
>%+d< >-1< >-1<
+>% d< >-1< >-1<
+>%-3d< >-1< >-1 <
+>%+3d< >-1< > -1<
+>% 3d< >-1< > -1<
+>%03d< >-1< >-01<
>%hd< >1< >1< >More extensive testing of<
>%ld< >1< >1< >length modifiers would be<
>%Vd< >1< >1< >platform-specific<
>%vd< >"\01\02\03"< >1.2.3<
>%vd< >v1.2.3< >1.2.3<
>%vd< >[version::qv("1.2.3")]< >1.2.3<
->%vd< >[version->new("1.2")]< >1.200<
->%vd< >[version->new("1.02")]< >1.20<
+>%vd< >[version->new("1.2")]< >1.2<
+>%vd< >[version->new("1.02")]< >1.2<
>%vd< >[version->new("1.002")]< >1.2<
->%vd< >[version->new("1048576.5")]< >1048576.500<
->%vd< >[version->new("50")]< >50.0<
+>%vd< >[version->new("1048576.5")]< >1048576.5<
+>%vd< >[version->new("50")]< >50<
>%v.3d< >"\01\02\03"< >001.002.003<
>%0v3d< >"\01\02\03"< >001.002.003<
>%v.3d< >[version::qv("1.2.3")]< >001.002.003<
>%+-v3d< >"\01\02\03"< >+1 .2 .3 <
>%+-v3d< >[version::qv("1.2.3")]< >+1 .2 .3 <
>%v4.3d< >"\01\02\03"< > 001. 002. 003<
->%0v4.3d< >"\01\02\03"< >0001.0002.0003<
+>%0v4.3d< >"\01\02\03"< > 001. 002. 003<
>%0*v2d< >['-', "\0\7\14"]< >00-07-12<
>%v.*d< >["\01\02\03", 3]< >001.002.003<
>%0v*d< >["\01\02\03", 3]< >001.002.003<
>%-v*d< >["\01\02\03", 3]< >1 .2 .3 <
>%+-v*d< >["\01\02\03", 3]< >+1 .2 .3 <
>%v*.*d< >["\01\02\03", 4, 3]< > 001. 002. 003<
->%0v*.*d< >["\01\02\03", 4, 3]< >0001.0002.0003<
+>%0v*.*d< >["\01\02\03", 4, 3]< > 001. 002. 003<
>%0*v*d< >['-', "\0\7\13", 2]< >00-07-11<
>%0*v*d< >['-', version::qv("0.7.11"), 2]< >00-07-11<
>%e< >1234.875< >1.234875e+03<
>%g< >12345.6789< >12345.7<
>%+g< >12345.6789< >+12345.7<
>%#g< >12345.6789< >12345.7<
->%.0g< >-0.0< >-0< >C99 standard mandates minus sign but C89 does not skip: MSWin32 VMS hpux:10.20 openbsd netbsd:1.5 irix<
+>%.0g< >-0.0< >-0< >C99 standard mandates minus sign but C89 does not skip: MSWin32 VMS hpux:10.20 openbsd netbsd:1.5 irix darwin<
>%.0g< >12345.6789< >1e+04<
>%#.0g< >12345.6789< >1.e+04<
>%.2g< >12345.6789< >1.2e+04<
>%#o< >2**32-1< >037777777777<
>%o< >642< >1202< >check smaller octals across platforms<
>%+o< >642< >1202<
+>% o< >642< >1202<
>%#o< >642< >01202<
+>%4o< >18< > 22<
+>%4.3o< >18< > 022<
+>%-4.3o< >18< >022 <
+>%+4.3o< >18< > 022<
+>% 4.3o< >18< > 022<
+>%04.3o< >18< > 022< >0 flag with precision: no effect<
+>%4.o< >36< > 44<
+>%-4.o< >36< >44 <
+>%+4.o< >36< > 44<
+>% 4.o< >36< > 44<
+>%04.o< >36< > 44< >0 flag with precision: no effect<
+>%.3o< >18< >022<
+>%.0o< >0< ><
+>%+.0o< >0< ><
+>% .0o< >0< ><
+>%-.0o< >0< ><
+>%#.0o< >0< >0<
+>%#3.0o< >0< > 0<
+>%#3.1o< >0< > 0<
+>%#3.2o< >0< > 00<
+>%#3.3o< >0< >000<
+>%#3.4o< >0< >0000<
+>%.0o< >1< >1<
+>%+.0o< >1< >1<
+>% .0o< >1< >1<
+>%-.0o< >1< >1<
+>%#.0o< >1< >01<
+>%#3.0o< >1< > 01<
+>%#3.1o< >1< > 01<
+>%#3.2o< >1< > 01<
+>%#3.3o< >1< >001<
+>%#3.4o< >1< >0001<
+>%#.5o< >012345< >012345<
+>%#.5o< >012< >00012<
+>%#4o< >17< > 021<
+>%#-4o< >17< >021 <
+>%-#4o< >17< >021 <
+>%#+4o< >17< > 021<
+>%# 4o< >17< > 021<
+>%#04o< >17< >0021<
+>%#4.o< >16< > 020<
+>%#-4.o< >16< >020 <
+>%-#4.o< >16< >020 <
+>%#+4.o< >16< > 020<
+>%# 4.o< >16< > 020<
+>%#04.o< >16< > 020< >0 flag with precision: no effect<
+>%#4.3o< >18< > 022<
+>%#-4.3o< >18< >022 <
+>%-#4.3o< >18< >022 <
+>%#+4.3o< >18< > 022<
+>%# 4.3o< >18< > 022<
+>%#04.3o< >18< > 022< >0 flag with precision: no effect<
+>%#6.4o< >18< > 0022<
+>%#-6.4o< >18< >0022 <
+>%-#6.4o< >18< >0022 <
+>%#+6.4o< >18< > 0022<
+>%# 6.4o< >18< > 0022<
+>%#06.4o< >18< > 0022< >0 flag with precision: no effect<
>%d< >$p=sprintf('%p',$p);$p=~/^[0-9a-f]+$/< >1< >Coarse hack: hex from %p?<
>%d< >$p=sprintf('%-8p',$p);$p=~/^[0-9a-f]+\s*$/< >1< >Coarse hack: hex from %p?<
>%#p< >''< >%#p INVALID<
>%3s< >'string'< >string<
>%.3s< >'string'< >str<
>%.*s< >[3, 'string']< >str<
+>%.*s< >[2, 'string']< >st<
+>%.*s< >[1, 'string']< >s<
+>%.*s< >[0, 'string']< ><
+>%.*s< >[-1,'string']< >string< >negative precision to be ignored<
+>%3.*s< >[3, 'string']< >str<
+>%3.*s< >[2, 'string']< > st<
+>%3.*s< >[1, 'string']< > s<
+>%3.*s< >[0, 'string']< > <
+>%3.*s< >[-1,'string']< >string< >negative precision to be ignored<
>%t< >''< >%t INVALID<
>%u< >2**32-1< >4294967295<
>%+u< >2**32-1< >4294967295<
>%012u< >2**32-1< >004294967295<
>%-12u< >2**32-1< >4294967295 <
>%-012u< >2**32-1< >4294967295 <
+>%4u< >18< > 18<
+>%4.3u< >18< > 018<
+>%-4.3u< >18< >018 <
+>%+4.3u< >18< > 018<
+>% 4.3u< >18< > 018<
+>%04.3u< >18< > 018< >0 flag with precision: no effect<
+>%.3u< >18< >018<
>%v< >''< >%v INVALID<
>%w< >''< >%w INVALID<
>%x< >2**32-1< >ffffffff<
>%-10x< >2**32-1< >ffffffff <
>%-010x< >2**32-1< >ffffffff <
>%0-10x< >2**32-1< >ffffffff <
+>%4x< >18< > 12<
+>%4.3x< >18< > 012<
+>%-4.3x< >18< >012 <
+>%+4.3x< >18< > 012<
+>% 4.3x< >18< > 012<
+>%04.3x< >18< > 012< >0 flag with precision: no effect<
+>%.3x< >18< >012<
+>%4X< >28< > 1C<
+>%4.3X< >28< > 01C<
+>%-4.3X< >28< >01C <
+>%+4.3X< >28< > 01C<
+>% 4.3X< >28< > 01C<
+>%04.3X< >28< > 01C< >0 flag with precision: no effect<
+>%.3X< >28< >01C<
+>%.0x< >0< ><
+>%+.0x< >0< ><
+>% .0x< >0< ><
+>%-.0x< >0< ><
+>%#.0x< >0< ><
+>%#3.0x< >0< > <
+>%#3.1x< >0< > 0<
+>%#3.2x< >0< > 00<
+>%#3.3x< >0< >000<
+>%#3.4x< >0< >0000<
+>%.0x< >1< >1<
+>%+.0x< >1< >1<
+>% .0x< >1< >1<
+>%-.0x< >1< >1<
+>%#.0x< >1< >0x1<
+>%#3.0x< >1< >0x1<
+>%#3.1x< >1< >0x1<
+>%#3.2x< >1< >0x01<
+>%#3.3x< >1< >0x001<
+>%#3.4x< >1< >0x0001<
+>%#.5x< >0x12345< >0x12345<
+>%#.5x< >0x12< >0x00012<
+>%#4x< >28< >0x1c<
+>%#4.3x< >28< >0x01c<
+>%#-4.3x< >28< >0x01c<
+>%#+4.3x< >28< >0x01c<
+>%# 4.3x< >28< >0x01c<
+>%#04.3x< >28< >0x01c< >0 flag with precision: no effect<
+>%#.3x< >28< >0x01c<
+>%#6.3x< >28< > 0x01c<
+>%#-6.3x< >28< >0x01c <
+>%-#6.3x< >28< >0x01c <
+>%#+6.3x< >28< > 0x01c<
+>%+#6.3x< >28< > 0x01c<
+>%# 6.3x< >28< > 0x01c<
+>% #6.3x< >28< > 0x01c<
>%0*x< >[-10, ,2**32-1]< >ffffffff <
>%vx< >[version::qv("1.2.3")]< >1.2.3<
>%vx< >[version::qv("1.20.300")]< >1.14.12c<
+>%.*x< >[0,0]< ><
+>%-.*x< >[0,0]< ><
+>%+.*x< >[0,0]< ><
+>% .*x< >[0,0]< ><
+>%0.*x< >[0,0]< ><
+>%.*x< >[-3,0]< >0<
+>%-.*x< >[-3,0]< >0<
+>%+.*x< >[-3,0]< >0<
+>% .*x< >[-3,0]< >0<
+>%0.*x< >[-3,0]< >0<
+>%#.*x< >[0,0]< ><
+>%#-.*x< >[0,0]< ><
+>%#+.*x< >[0,0]< ><
+>%# .*x< >[0,0]< ><
+>%#0.*x< >[0,0]< ><
+>%#.*x< >[-1,0]< >0<
+>%#-.*x< >[-1,0]< >0<
+>%#+.*x< >[-1,0]< >0<
+>%# .*x< >[-1,0]< >0<
+>%#0.*x< >[-1,0]< >0<
>%y< >''< >%y INVALID<
>%z< >''< >%z INVALID<
>%2$d %1$d< >[12, 34]< >34 12<
>%0v2.2d< >''< ><
>%vc,%d< >[63, 64, 65]< >%vc,63 INVALID<
>%v%,%d< >[63, 64, 65]< >%v%,63 INVALID<
->%vd,%d< >[1, 2, 3]< >49,2<
+>%vd,%d< >["\x1", 2, 3]< >1,2<
>%vf,%d< >[1, 2, 3]< >%vf,1 INVALID<
>%vF,%d< >[1, 2, 3]< >%vF,1 INVALID<
>%ve,%d< >[1, 2, 3]< >%ve,1 INVALID<
>%vs,%d< >[1, 2, 3]< >%vs,1 INVALID<
>%v_< >''< >%v_ INVALID<
>%v#x< >''< >%v#x INVALID<
->%v02x< >"foo\012"< >66.6f.6f.0a<
->%#v.8b< >"a\000b"< >0b01100001.00000000.0b01100010<
->%#v.4o< >"a\000b"< >0141.0000.0142<
->%#v.3i< >"a\000b"< >097.000.098<
->%#v.2x< >"a\000b"< >0x61.00.0x62<
->%#*v.8b< >["][", "a\000b"]< >0b01100001][00000000][0b01100010<
->%#*v.4o< >["][", "a\000b"]< >0141][0000][0142<
->%#*v.3i< >["][", "a\000b"]< >097][000][098<
->%#*v.2x< >["][", "a\000b"]< >0x61][00][0x62<
->%#v.8b< >"a\x{1e01}\000b\x{1e03}"< >0b01100001.0b1111000000001.00000000.0b01100010.0b1111000000011<
->%#v.4o< >"a\x{1e01}\000b\x{1e03}"< >0141.017001.0000.0142.017003<
->%#v.3i< >"a\x{1e01}\000b\x{1e03}"< >097.7681.000.098.7683<
->%#v.2x< >"a\x{1e01}\000b\x{1e03}"< >0x61.0x1e01.00.0x62.0x1e03<
+>%v02x< >"\x66\x6f\x6f\012"< >66.6f.6f.0a<
+>%#v.8b< >"\141\000\142"< >0b01100001.00000000.0b01100010< >perl #39530<
+>%#v.0o< >"\001\000\002\000"< >01.0.02.0<
+>%#v.1o< >"\001\000\002\000"< >01.0.02.0<
+>%#v.4o< >"\141\000\142"< >0141.0000.0142< >perl #39530<
+>%#v.3i< >"\141\000\142"< >097.000.098< >perl #39530<
+>%#v.0x< >"\001\000\002\000"< >0x1..0x2.<
+>%#v.1x< >"\001\000\002\000"< >0x1.0.0x2.0<
+>%#v.2x< >"\141\000\142"< >0x61.00.0x62< >perl #39530<
+>%#v.2X< >"\141\000\142"< >0X61.00.0X62< >perl #39530<
+>%#v.8b< >"\141\017\142"< >0b01100001.0b00001111.0b01100010< >perl #39530<
+>%#v.4o< >"\141\017\142"< >0141.0017.0142< >perl #39530<
+>%#v.3i< >"\141\017\142"< >097.015.098< >perl #39530<
+>%#v.2x< >"\141\017\142"< >0x61.0x0f.0x62< >perl #39530<
+>%#v.2X< >"\141\017\142"< >0X61.0X0F.0X62< >perl #39530<
+>%#*v.8b< >["][", "\141\000\142"]< >0b01100001][00000000][0b01100010< >perl #39530<
+>%#*v.4o< >["][", "\141\000\142"]< >0141][0000][0142< >perl #39530<
+>%#*v.3i< >["][", "\141\000\142"]< >097][000][098< >perl #39530<
+>%#*v.2x< >["][", "\141\000\142"]< >0x61][00][0x62< >perl #39530<
+>%#*v.2X< >["][", "\141\000\142"]< >0X61][00][0X62< >perl #39530<
+>%#*v.8b< >["][", "\141\017\142"]< >0b01100001][0b00001111][0b01100010< >perl #39530<
+>%#*v.4o< >["][", "\141\017\142"]< >0141][0017][0142< >perl #39530<
+>%#*v.3i< >["][", "\141\017\142"]< >097][015][098< >perl #39530<
+>%#*v.2x< >["][", "\141\017\142"]< >0x61][0x0f][0x62< >perl #39530<
+>%#*v.2X< >["][", "\141\017\142"]< >0X61][0X0F][0X62< >perl #39530<
+>%#v.8b< >"\141\x{1e01}\000\142\x{1e03}"< >0b01100001.0b1111000000001.00000000.0b01100010.0b1111000000011< >perl #39530<
+>%#v.4o< >"\141\x{1e01}\000\142\x{1e03}"< >0141.017001.0000.0142.017003< >perl #39530<
+>%#v.3i< >"\141\x{1e01}\000\142\x{1e03}"< >097.7681.000.098.7683< >perl #39530<
+>%#v.2x< >"\141\x{1e01}\000\142\x{1e03}"< >0x61.0x1e01.00.0x62.0x1e03< >perl #39530<
+>%#v.2X< >"\141\x{1e01}\000\142\x{1e03}"< >0X61.0X1E01.00.0X62.0X1E03< >perl #39530<
+>%#v.8b< >"\141\x{1e01}\017\142\x{1e03}"< >0b01100001.0b1111000000001.0b00001111.0b01100010.0b1111000000011< >perl #39530<
+>%#v.4o< >"\141\x{1e01}\017\142\x{1e03}"< >0141.017001.0017.0142.017003< >perl #39530<
+>%#v.3i< >"\141\x{1e01}\017\142\x{1e03}"< >097.7681.015.098.7683< >perl #39530<
+>%#v.2x< >"\141\x{1e01}\017\142\x{1e03}"< >0x61.0x1e01.0x0f.0x62.0x1e03< >perl #39530<
+>%#v.2X< >"\141\x{1e01}\017\142\x{1e03}"< >0X61.0X1E01.0X0F.0X62.0X1E03< >perl #39530<
>%V-%s< >["Hello"]< >%V-Hello INVALID<
>%K %d %d< >[13, 29]< >%K 13 29 INVALID<
>%*.*K %d< >[13, 29, 76]< >%*.*K 13 INVALID<