Re: printf question

2020-02-05 Thread ToddAndMargo via perl6-users
On 2020-02-05 20:12, Paul Procacci wrote: I wasn't going to follow up but decided to do so since there is a small but subtle bug in my original post. I wouldn't want to mislead you Todd. The \d has been changed to [0..9] as the expected input would only ever be in that range.  (\d includes Uni

Re: printf question

2020-02-05 Thread Paul Procacci
I wasn't going to follow up but decided to do so since there is a small but subtle bug in my original post. I wouldn't want to mislead you Todd. The \d has been changed to [0..9] as the expected input would only ever be in that range. (\d includes Unicode Characters) I've also included an alignme

Re: printf question

2020-02-05 Thread ToddAndMargo via perl6-users
On 2020-02-03 13:51, ToddAndMargo via perl6-users wrote: Hi All, Is ther a way to get $ p6 'my uint8 $u = 84; printf "\$u = <%08s>\n", $u;' $u = <0084> to print $u = <_0084> ? Many thanks, -T Hi All, Just to torment myself, I wrote a sub to do this:

Re: printf question

2020-02-05 Thread ToddAndMargo via perl6-users
On 2020-02-04 17:08, Paul Procacci wrote: The only thing that's wrong is that you didn't account for leading zero's. Your initial question has a type who's size is always 1 byte. However your second question, the one where 'something is wrong' requires more bits of information to hold the given

Re: printf question

2020-02-05 Thread ToddAndMargo via perl6-users
On 2020-02-04 02:49, Tom Browder wrote: On Tue, Feb 4, 2020 at 01:04 ToddAndMargo via perl6-users mailto:perl6-us...@perl.org>> wrote: ... >>     Who do I get it to print >> >>           0b0100_ Look at my module Text::Utils and its "commify" sub taken from "The Perl Cook

[Raku/old-design-docs]

2020-02-05 Thread Elizabeth Mattijsen
Branch: refs/heads/design-into-raku Home: https://github.com/Raku/old-design-docs