Text::Sprintf::Length - Calculate length of sprintf()-formatted string
This document describes version 0.001 of Text::Sprintf::Length (from Perl distribution Text-Sprintf-Length), released on 2018-03-17.
use Text::Sprintf::Length qw(sprintf_length); my $len; $len = sprintf_length("%s"); # => undef $len = sprintf_length("%8s") ; # => 8 $len = sprintf_length("%8s %% %c"); # => 12
Usage:
sprintf_length($fmt) => int|undef
Please visit the project's homepage at https://metacpan.org/release/Text-Sprintf-Length.
Source repository is at https://github.com/perlancar/perl-Text-Sprintf-Length.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Text-Sprintf-Length
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2018 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Text::Sprintf::Length, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Sprintf::Length
CPAN shell
perl -MCPAN -e shell install Text::Sprintf::Length
For more information on module installation, please visit the detailed CPAN module installation guide.