1 Apr 21:24
Petal::Utils patch
This is against 0.06. This adds several new modifiers: count: counts items in array dollar: formats string as us dollar amount percent: formats string as percentage (%.2f%%) telephone: formats strings as NANPA phone numbers include: include file with dynamic name I added the tests, but it looks like the docmentation may be auto-generated, so I didn't touch that. Questions, comments, complaints welcome. -Warren
diff -rN ./lib/Petal/Utils/Count.pm ../Petal-Utils-0.07/lib/Petal/Utils/Count.pm 0a1,45 > package Petal::Utils::Count; > > use strict; > use warnings::register; > > use Carp; > > use base qw( Petal::Utils::Base ); > > use constant name => 'count'; > use constant aliases => qw();(Continue reading)
RSS Feed