1String::Flogger(3)    User Contributed Perl Documentation   String::Flogger(3)
2
3
4

NAME

6       String::Flogger - string munging for loggers
7

VERSION

9       version 1.101246
10

SYNOPSIS

12         use String::Flogger qw(flog);
13
14         my @inputs = (
15           'simple!',
16
17           [ 'slightly %s complex', 'more' ],
18
19           [ 'and inline some data: %s', { look => 'data!' } ],
20
21           [ 'and we can defer evaluation of %s if we want', sub { 'stuff' } ],
22
23           sub { 'while avoiding sprintfiness, if needed' },
24         );
25
26         say flog($_) for @inputs;
27
28       The above will output:
29
30         simple!
31
32         slightly more complex
33
34         and inline some data: {{{ "look": "data!" }}}
35
36         and we can defer evaluation of stuff if we want
37
38         while avoiding sprintfiness, if needed
39

PERL VERSION

41       This module should work on any version of perl still receiving updates
42       from the Perl 5 Porters.  This means it should work on any version of
43       perl released in the last two to three years.  (That is, if the most
44       recently released version is v5.40, then this module should work on
45       both v5.40 and v5.38.)
46
47       Although it may work on older versions of perl, no guarantee is made
48       that the minimum required version will not be increased.  The version
49       may be increased for any reason, and there is no promise that patches
50       will be accepted to lower the minimum required perl.
51

METHODS

53   flog
54       This method is described in the synopsis.
55
56   format_string
57         $flogger->format_string($fmt, \@input);
58
59       This method is used to take the formatted arguments for a format string
60       (when "flog" is passed an arrayref) and turn it into a string.  By
61       default, it just uses ""sprintf" in perlfunc".
62

AUTHOR

64       Ricardo SIGNES <cpan@semiotic.systems>
65

CONTRIBUTORS

67       •   Randy Stauner <randy@magnificent-tears.com>
68
69       •   Ricardo Signes <rjbs@semiotic.systems>
70
72       This software is copyright (c) 2022 by Ricardo Signes.
73
74       This is free software; you can redistribute it and/or modify it under
75       the same terms as the Perl 5 programming language system itself.
76
77
78
79perl v5.36.0                      2023-01-20                String::Flogger(3)
Impressum