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.101245
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

METHODS

41   flog
42       This method is described in the synopsis.
43
44   format_string
45         $flogger->format_string($fmt, \@input);
46
47       This method is used to take the formatted arguments for a format string
48       (when "flog" is passed an arrayref) and turn it into a string.  By
49       default, it just uses ""sprintf" in perlfunc".
50

AUTHOR

52       Ricardo SIGNES <rjbs@cpan.org>
53
55       This software is copyright (c) 2014 by Ricardo SIGNES <rjbs@cpan.org>.
56
57       This is free software; you can redistribute it and/or modify it under
58       the same terms as the Perl 5 programming language system itself.
59
60
61
62perl v5.32.0                      2020-07-28                String::Flogger(3)
Impressum