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
Pod::Elemental::PerlMunger(3pm) User Contributed Perl Documentation Pod::Elemental::PerlMunger(3pm)NAME
Pod::Elemental::PerlMunger - a thing that takes a string of Perl and rewrites its documentation
VERSION
version 0.093331
OVERVIEW
This role is to be included in classes that rewrite the documentation of a Perl document, stripping out all the Pod, munging it, and
replacing it into the Perl.
The only relevant method is "munge_perl_string", which must be implemented with a different interface than will be exposed.
When calling the "munge_perl_string" method, arguments should be passed like this:
$object->munge_perl_string($perl_string, \%arg);
%arg may contain any input for the underlying procedure. The only key with associated meaning is "filename" which may be omitted. If
given, it should be the name of the file whose contents are being munged.
The method will return a string containing the rewritten and combined document.
Classes including this role must implement a "munge_perl_string" that expects to be called like this:
$object->munge_perl_string(\%doc, \%arg);
%doc will have two entries:
ppi - a PPI::Document of the Perl document with all its Pod removed
pod - a Pod::Document with no transformations yet performed
This "munge_perl_string" method should return a hashref in the same format as %doc.
AUTHOR
Ricardo SIGNES <rjbs@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 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.12.4 2011-09-19 Pod::Elemental::PerlMunger(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)