Template::Plugin::Format โ Plugin to create formatting functions
| Use Case | Command | Description |
|---|---|---|
| ๐๏ธ Create a formatting function with a prefix | [% USE format %] [% commented = format('# %s') %] |
Creates a subroutine that prepends # to the input string |
| โจ Apply the formatting function | [% commented('The cat sat on the mat') %] |
Returns # The cat sat on the mat |
| ๐ค Add HTML bold tags | [% USE bold = format('<b>%s</b>') %] |
Creates a subroutine that wraps the input in <b>โฆ</b> |
| ๐ฎ Apply bold formatting | [% bold('Hello') %] |
Returns <b>Hello</b> |
[% USE format %]
[% commented = format('# %s') %]
[% commented('The cat sat on the mat') %]
[% USE bold = format('<b>%s</b>') %]
[% bold('Hello') %]
The format plugin constructs subโroutines which format text according to a printf()-like format string.
Andy Wardley <abw AT wardley.org> <http://wardley.org/>
Copyright (C) 1996โ2007 Andy Wardley. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-29 12:33 @216.73.217.111
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format