develooper Front page | perl.perl5.porters | Postings from July 2021

Re: Pre-RFC: Width-aware (s)printf flag

Thread Previous | Thread Next
From:
Paul "LeoNerd" Evans
Date:
July 2, 2021 10:39
Subject:
Re: Pre-RFC: Width-aware (s)printf flag
Message ID:
20210702113845.01565d5e@shy.leonerd.org.uk
On Fri, 2 Jul 2021 11:24:34 +0100
Neil Bowers <neilb@neilb.org> wrote:

> It would be very useful if this change also provided a `width`
> function, as a sister to `length`.
> 
> There are many CPAN modules that generate tables, columnar output,
> etc, which would benefit from such a function. It would be a pain to
> get this completely right, and keep it right with new emojis every
> year, but it would be a good Unicode feature to have in Perl’s
> toolbox.

I too have some precedent here:

  https://metacpan.org/pod/Tickit::Utils#textwidth

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About