NAME
Text::Sprintf::Length - Calculate length of sprintf()-formatted string
VERSION
This document describes version 0.001 of Text::Sprintf::Length (from Perl distribution Text-Sprintf-Length), released on 2018-03-17.
SYNOPSIS
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
DESCRIPTION
FUNCTIONS
sprintf_length
Usage:
sprintf_length($fmt) => int|undef
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/Text-Sprintf-Length.
SOURCE
Source repository is at https://github.com/perlancar/perl-Text-Sprintf-Length.
BUGS
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.
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
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.