String::Flogger(3pm) User Contributed Perl Documentation String::Flogger(3pm)NAME
String::Flogger - string munging for loggers
VERSION
version 1.101242
SYNOPSIS
use String::Flogger qw(flog);
my @inputs = (
'simple!',
[ 'slightly %s complex', 'more' ],
[ 'and inline some data: %s', { look => 'data!' } ],
[ 'and we can defer evaluation of %s if we want', sub { 'stuff' } ],
sub { 'while avoiding sprintfiness, if needed' },
);
say flog($_) for @inputs;
The above will output:
simple!
slightly more complex
and inline some data: {{{ "look": "data!" }}}
and we can defer evaluation of stuff if we want
while avoiding sprintfiness, if needed
METHODS
flog
This method is described in the synopsis.
format_string
$flogger->format_string($fmt, @input);
This method is used to take the formatted arguments for a format string (when "flog" is passed an arrayref) and turn it into a string. By
default, it just uses ""sprintf" in perlfunc".
AUTHOR
Ricardo SIGNES <rjbs@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Ricardo SIGNES <rjbs@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.
perl v5.14.2 2012-03-26 String::Flogger(3pm)
Check Out this Related Man Page
Dist::Zilla::Role::FileFinder(3pm) User Contributed Perl Documentation Dist::Zilla::Role::FileFinder(3pm)NAME
Dist::Zilla::Role::FileFinder - something that finds files within the distribution
VERSION
version 4.300020
DESCRIPTION
A FileFinder plugin locates files within the distribution. This role exists so that sets of files can be easily described in one
configuration section and then used by one or more other plugin.
Plugins implementing this role must provide a "find_files" method which will be called with no arguments and must return an arrayref of
files. (This arrayref should not be re-used, as it may be altered once returned.)
For example, imagine a simple glob-like FileFinder that expects configuration like this:
[Glob / RootModules]
glob = *.pm
This sets up a FileFinder named "RootModules" which will contain all pm files in the root directory.
Another plugin that knows how to use FileFinder plugins might be configured like this:
[ModuleRelocator]
finder = RootModules
relocate_to = attic
Finders may operate on any rules they like, checking file size, content, name, or other properties. They should re-perform their "finding"
on each call to "find_files" as the files in the distribution may have changed.
AUTHOR
Ricardo SIGNES <rjbs@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-06-21 Dist::Zilla::Role::FileFinder(3pm)
i'm very new to UNIX C programming.
I want to replace a very slow forloop in my program so that my tasks be run parallely:
vector <string>inputs;
...populate inputs with 12 strings
for (int i=0;i<12;i++)
process(inputs); //process sends a request to remote network;takes up a lot of time;
... (3 Replies)
Hi all,
I have a file like this
ibhib=ere
wefwfl=werfe
sfdes=wef
From this file, i need to get the lefthand side string with respect to the corresponding righthand side string. i.e, I need to get the string "ere" with respect to "ibhib".
But i am stuck with how to compare a string... (1 Reply)
1. The problem statement, all variables and given/known data:
Problem Statement for project:
When an account is created on the CS Unix network, a
public html directory is created in the account's home directory. A default web page is put into that directory.
Some users replace or... (13 Replies)
Hi,
I'm very new to UNIX scripting and find quite difficult to understand simple UNIX syntax. Really appreciat if somebody could help me to give simple codes for my below problems:-
1) I need to search for a string "TTOH 8031950001" in a files which filename will be "*host*'. For example, the... (3 Replies)
Hi,
I've a logging function in bourne shell, flog() which logs the first argument passed to it. How can I pass arguments to this function from a file, like
cat filename | sed '...filtering...' | flog
or
cat filename | sed '...filtering...' | xargs flog
Which did not work, after which... (3 Replies)
I have a requirement where I collect inputs from entry widget in gui(via variables a,b,c) and then output a string like this: -a a -b b -c c.
Hence if I have given a=1 b=2 c=3, The output string is --> -a 1 -b 2 -c 3
or if I have given a=1 b=2 (c left blank) then the output is --> -a 1... (1 Reply)
I want to learn programming so I can do the really neat stuff on computers, you know like making applications and mods to applications, designing GUI's and other stuff. I have a great imagination and have some really cool ideas but dont know how to make them a reality yet. I have seen all the... (2 Replies)