jettero / term--gentoofunctions

ebegin, eend, einfo, etc ... for perl ... on any platform.

Home Page:http://search.cpan.org/perldoc?Term::GentooFunctions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Term::GentooFunctions
=============

Provides gentoo's einfo, ewarn, eerror, ebegin and eend.

This is not something that's in use in any Gentoo packages that
I'm aware of.  It's simply a port of Gentoo's /sbin/functions.sh
(used mainly for startup messages) to Perl for the purposes of
decorating command line apps.


use Term::GentooFunctions qw(:all)

einfo "this is kinda neat...";

ebegin "I hope this works...";

This module also provides a handy way to go do something with a
message:

my $return = edo "doing something" => sub {
    $x = 17;
};

....

eend $truefalse; # the result is backwards of gentoo; ie, 0 is bad, 1 is good.

About

ebegin, eend, einfo, etc ... for perl ... on any platform.

http://search.cpan.org/perldoc?Term::GentooFunctions


Languages

Language:Perl 98.4%Language:Perl 6 1.6%