-
-
21 Mar 2022 15:23:34 UTC
- Distribution: Catmandu
- Module version: 1.2019
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (36)
- Testers (497 / 0 / 7)
- Kwalitee
Bus factor: 4- 87.59% Coverage
- License: perl_5
- Perl: v5.14.0
- Activity
24 month- Tools
- Download (814.59KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 19 contributors- Nicolas Steenlant, C<< <nicolas.steenlant at ugent.be> >>
-
Christian Pietsch
-
Dave Sherohman
-
Doug Bell
-
EC2 Default User
-
Jakob Voß
-
Johann Rolschewski
-
Magnus Enger
-
Matthias Vandermaesen
-
Mohammad S Anwar
-
Nicolas Franck
-
Patrick Hochstenbach
-
Pieter De Praetere
-
Snorri Briem
-
Stefan Weil
-
Tom Hukins
-
Upasana Shukla
-
Vitali Peil
-
Zakariyya Mughal
- Dependencies
- Any::URI::Escape
- App::Cmd
- CGI::Expand
- Class::Method::Modifiers
- Clone
- Config::Onion
- Cpanel::JSON::XS
- Data::Compare
- Data::Util
- HTTP::Request
- Hash::Merge::Simple
- IO::Handle::Util
- LWP::UserAgent
- List::MoreUtils
- Log::Any
- Log::Any::Adapter
- MIME::Types
- Module::Build
- Module::Info
- Moo
- MooX::Aliases
- Package::Stash
- Parser::MGC
- Path::Iterator::Rule
- Path::Tiny
- Role::Tiny
- Role::Tiny::With
- String::CamelCase
- Sub::Exporter
- Sub::Quote
- Text::CSV
- Text::Hogan::Compiler
- Throwable
- Time::HiRes
- Try::Tiny::ByClass
- URI
- URI::Template
- UUID::Tiny
- Unicode::Normalize
- YAML::XS
- asa
- namespace::clean
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Catmandu::Fix::format - replace the value with a formatted (sprintf-like) version
SYNOPSIS
# e.g. number: 41 format(number,"%-10.10d") # number => "0000000041" # e.g. numbers: # - 41 # - 15 format(number,"%-10.10d %-5.5d") # numbers => "0000000041 00015" # e.g. hash: # name: Albert format(name,"%-10s: %s") # hash: "name : Albert" # e.g. array: # - 1 format(array,"%d %d %d") # Fails! The array contains only one value, but you request 3 values # Test first if the array contains 3 values if exists(array.2) format(array,"%d %d %d") end
DESCRIPTION
Create a string formatted by the usual printf conventions of the C library function sprintf. See http://perldoc.perl.org/functions/sprintf.html for a complete description.
SEE ALSO
Module Install Instructions
To install Catmandu, copy and paste the appropriate command in to your terminal.
cpanm Catmandu
perl -MCPAN -e shell install Catmandu
For more information on module installation, please visit the detailed CPAN module installation guide.