SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-String-Formatter rpm build for : OpenSuSE. For other distributions click perl-String-Formatter.

Name : perl-String-Formatter
Version : 1.235 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : lp155.23.2 Date : 2023-05-17 16:19:40
Group : Unspecified Source RPM : perl-String-Formatter-1.235-lp155.23.2.src.rpm
Size : 0.07 MB
Packager : https://www_suse_com/
Summary : Build sprintf-like functions of your own
Description :
String::Formatter is a tool for building sprintf-like formatting routines.
It supports named or positional formatting, custom conversions, fixed
string interpolation, and simple width-matching out of the box. It is easy
to alter its behavior to write new kinds of format string expanders. For
most cases, it should be easy to build all sorts of formatters out of the
options built into String::Formatter.

Normally, String::Formatter will be used to import a sprintf-like routine
referred to as \"\'stringf\'\", but which can be given any name you like. This
routine acts like sprintf in that it takes a string and some inputs and
returns a new string:

my $output = stringf \"Some %a format %s for you to %u.\
\", { ... };

This routine is actually a wrapper around a String::Formatter object
created by importing stringf. In the following code, the entire hashref
after \"stringf\" is passed to String::Formatter\'s constructor (the \'new\'
method), save for the \'-as\' key and any other keys that start with a dash.

use String::Formatter
stringf => {
-as => \'fmt_time\',
codes => { ... },
format_hunker => ...,
input_processor => ...,
},
stringf => {
-as => \'fmt_date\',
codes => { ... },
string_replacer => ...,
hunk_formatter => ...,
},
;

As you can see, this will generate two stringf routines, with different
behaviors, which are installed with different names. Since the behavior of
these routines is based on the \'format\' method of a String::Formatter
object, the rest of the documentation will describe the way the object
behaves.

There\'s also a \'named_stringf\' export, which behaves just like the
\'stringf\' export, but defaults to the \'named_replace\' and
\'require_named_input\' arguments. There\'s a \'method_stringf\' export, which
defaults \'method_replace\' and \'require_single_input\'. Finally, a
\'indexed_stringf\', which defaults to \'indexed_replaced\' and
\'require_arrayref_input\'. For more on these, keep reading, and check out
the cookbook.

String::Formatter::Cookbook provides a number of recipes for ways to put
String::Formatter to use.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/15.5/noarch

Content of RPM  Changelog  Provides Requires

Download
ftp.icm.edu.pl  perl-String-Formatter-1.235-lp155.23.2.noarch.rpm
     

Provides :
perl(String::Formatter)
perl(String::Formatter::Cookbook)
perl-String-Formatter

Requires :
perl(:MODULE_COMPAT_5.26.1)
perl(Params::Util)
perl(Sub::Exporter)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.26.1/String
/usr/lib/perl5/vendor_perl/5.26.1/String/Formatter
/usr/lib/perl5/vendor_perl/5.26.1/String/Formatter.pm
/usr/lib/perl5/vendor_perl/5.26.1/String/Formatter/Cookbook.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-String-Formatter
/usr/share/doc/packages/perl-String-Formatter/Changes
/usr/share/doc/packages/perl-String-Formatter/README
/usr/share/licenses/perl-String-Formatter
/usr/share/licenses/perl-String-Formatter/LICENSE
/usr/share/man/man3/String::Formatter.3pm.gz
/usr/share/man/man3/String::Formatter::Cookbook.3pm.gz

 
ICM