Text::Indent 0.1
Sponsored Links
Text::Indent 0.1 Ranking & Summary
File size:
0.005 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
811
Date added:
2007-08-08
Publisher:
James FitzGibbon
Text::Indent 0.1 description
Text::Indent is a simple indentation of text shared among modules.
SYNOPSIS
In your main program:
use Text::Indent;
my $indent = Text::Indent->new;
$indent->spaces(2);
In a module to produce indented output:
use Text::Indent;
my $indent = Text::Indent->instance;
$indent->increase;
print $indent->indent("this will be indented two spaces");
$indent->increase(2);
print $indent->indent("this will be indented six spaces");
$indent->decrease(3);
Text::Indent is designed for use in programs which need to produce output with multiple levels of indent when the source of the output comes from different modules that know nothing about each other.
For example take module A, whose output includes the indented output of module B. Module B can also produce output directly, so it falls to module B to know whether it should indent its output or not depending on its calling context.
Text::Indent allows programs and modules to cooperate to choose an appropriate indent level that is shared within the program context. In the above example, module A would increase the indent level prior to calling the output routines of module B. Module B would simply use the Text::Indent instance confident that if it were being called directly no indent would be applied but if module A was calling it then its output would be indented one level.
SYNOPSIS
In your main program:
use Text::Indent;
my $indent = Text::Indent->new;
$indent->spaces(2);
In a module to produce indented output:
use Text::Indent;
my $indent = Text::Indent->instance;
$indent->increase;
print $indent->indent("this will be indented two spaces");
$indent->increase(2);
print $indent->indent("this will be indented six spaces");
$indent->decrease(3);
Text::Indent is designed for use in programs which need to produce output with multiple levels of indent when the source of the output comes from different modules that know nothing about each other.
For example take module A, whose output includes the indented output of module B. Module B can also produce output directly, so it falls to module B to know whether it should indent its output or not depending on its calling context.
Text::Indent allows programs and modules to cooperate to choose an appropriate indent level that is shared within the program context. In the above example, module A would increase the indent level prior to calling the output routines of module B. Module B would simply use the Text::Indent instance confident that if it were being called directly no indent would be applied but if module A was calling it then its output would be indented one level.
Text::Indent 0.1 Screenshot
Text::Indent 0.1 Keywords
Indent 0.1
indent
module
output
modules
shared
indented
Text::Indent
TextIndent
Text::Indent 0.1
Libraries
Programming
Bookmark Text::Indent 0.1
Text::Indent 0.1 Copyright
WareSeeker periodically updates pricing and software information of Text::Indent 0.1 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Text::Indent 0.1 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
neverwinter nights modules
high power red laser diode modules
indented bill of material
modules.conf
memory modules
indented chest
stoptailturn light bar modules
780wp of kyocera solar modules
powertrain control module
indentation
body control module
module master
indentured slaves
output express
cardiac output
lunar module
indentured servants
indenting paragraphs
Related Software
EP3 Perl module is the Extensible Perl PreProcessor. Free Download
Text::Quote contains quotes strings as required for perl to eval them back correctly. Free Download
GD::Text is a Perl module with text utilities for use with GD. Free Download
AngelineCMS is an open source Content Management System (CMS) and a complete Web Development Framework (Application server). Free Download
Text::Replace is a Perl module to replace variables from a hash. Free Download
Text::MetaMarkup::HTML is a MM-to-HTML converter. Free Download
Transcode is a suite of command line utilities for transcoding video and audio codecs. Free Download
Text::Emoticon::GoogleTalk is a Perl module emoticon filter of GoogleTalk. Free Download
Latest Software
Popular Software
Favourite Software