Software Index
Linux Software Programming  

Term::Emit

download download home home   report broken
important software information
company name:
Steve Roscio
license: Freeware
minimum requirements:
functional limitations:
Term::Emit description
Term::Emit is a Perl module used to print balanced and nested messages with a completion status. These messages indent easily within each other, autocomplete on scope exit, are easily parsed, may be bulleted, can be filtered, and even can show status in color.

For example, you write code like this:

use Term::Emit qw/:all/;
emit "Reconfiguring the grappolator";
do_whatchamacallit();
do_something_else();

It begins by printing:

Reconfiguring the grappolator...

Then it does "whatchamacallit" and "something else". When these are complete it adds the rest of the line: a bunch of dots and the [DONE].

Reconfiguring the grappolator............................... [DONE]

Your do_whatchamacallit() and do_something_else() subroutines may also emit what they're doing, and indicate success or failure or whatever, so you can get nice output like this:

Reconfiguring the grappolator...
Processing whatchamacallit................................ [WARN]
Fibulating something else...
Fibulation phase one.................................... [OK]
Fibulation phase two.................................... [ERROR]
Wrapup of fibulation.................................... [OK]
Reconfiguring the grappolator............................... [DONE]

A series of examples will make Term::Emit easier to understand.

SYNOPSIS

For a script like this:

use Term::Emit qw/:all/;
emit "System parameter updates";
emit "CLOCK_UTC";
#...do_something();
emit_ok;

emit "NTP Servers";
#...do_something();
emit_error;

emit "DNS Servers";
#...do_something();
emit_warn;

You get this output:

System parameter updates...
CLOCK_UTC................................................. [OK]
NTP Servers............................................... [ERROR]
DNS Servers............................................... [WARN]
System parameter updates.................................... [DONE]. Haunted Mines - Halloween Haunted House in Colorado Springs, CO. Haunted Mines - Halloween Haunted House in Colorado Springs, CO - Experience Total Terror! Indoor, outdoor, and underground!
Similar software
Term-Emit-Format-HTML (Popularity: ) : This module reformats the output from an application that uses
Term::Emit into a chunk of HTML, which you can embed in a web page.

This module is handy if you write Web UIs that wrap a command line
utility and show the output ...

YATG (Popularity: ) : YATG is a Perl module which is intended to be run persistently. At intervals it will wake up and poll network devices for SNMP data, and then store or print that data. In this distribution are also included examples for ...
Agilefant (Popularity: ) : Agilefant answers the call for backlog management when spreadsheets meet their limits. If you are using agile or time-paced software development methods - or only some of the juiciest bits - you face the quest of linking your business strategies ...
Bundle::Delivery (Popularity: ) : Bundle::Delivery contains modules required to run the Delivery and/or Tapestry web-publishing applications.

SYNOPSIS

perl -MCPAN -e 'install Bundle::Delivery'

This bundle provides an easy way to install all the modules used by the web-publishing and community-management application Delivery, and its more esoteric online-story-weaving sibling ...

Math::Symbolic::Operator (Popularity: ) : Math::Symbolic::Operator is a Perl module with operators in symbolic calculations.

SYNOPSIS

use Math::Symbolic::Operator;

my $sum = Math::Symbolic::Operator->new('+', $term1, $term2);

# or:
my $division =
Math::Symbolic::Operator->new(
{
type => B_DIVISON,
operands => [$term1, $term2],
}
);

my $derivative =
Math::Symbolic::Operator->new(
{
type ...

Math::Symbolic::Custom::Transformation (Popularity: ) : Math::Symbolic::Custom::Transformation is a Perl extension to the Math::Symbolic module. You're assumed to be remotely familiar with that module throughout the documentation.

This package implements transformations of Math::Symbolic trees using Math::Symbolic trees. I'll try to explain what this means in the following ...

Test-Run (Popularity: ) : Test-Run is an improved test harness for scripts that emit TAP (Test Anything Protocol). It was forked from Test::Harness, and it uses TAP::Parser.

The project is used to analyze the output of the scripts and present it to the user in ...

Text::TermExtract (Popularity: ) : Text::TermExtract is a Perl module to extract terms from text.

SYNOPSIS

use Text::TermExtract;

my $text = { Hey, hey, how's it going? Wanna go to Wendy's
tonight? Wendy's has great sandwiches." };

my $ext = Text::TermExtract->new();

for my $word ( $ext->terms_extract( ...

Date::ISO8601 (Popularity: ) : The international standard ISO 8601 "Data elements and interchange formats - Information interchange - Representation of dates and times" defines three distinct calendars by which days can be labelled. It also defines textual formats for the representation of dates in ...
Term-Emit-Format-HTML (Popularity: ) : This module reformats the output from an application that uses
Term::Emit into a chunk of HTML, which you can embed in a web page.

This module is handy if you write Web UIs that wrap a command line
utility and show the output ...

Test::GlassBox::Heavy (Popularity: ) : If you have a Perl program to test, one approach is to run the program with various command line options and environment settings and observe the output. This might be called black box testing because you're treating the program as ...
User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
Rate me
supported os's
stats
downloads 5
version 0.0.2
size in Kb 20
popularity   
1138/1272475
user rating 5/10
our rating 0 Stars
share info
Recommend Term::Emit
Report spyware
New Software
Popular Software
Latest Reviews