Click here to get back home

Module naming: Boolean::Verbose

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Module naming: Boolean::Verbose ktat 03-11-2006
Posted by ktat on March 11, 2006, 7:07 am
Please log in for more thread options


Hi, All.

I have a module which I want to upload to CPAN.
My calliing it Boolean::Verbose, but Boolean is to be top level.
So I want to avoid this name. Do you have idea?
My second idea is Acme::True::Verbose. does this suit Acme::*?

===============================================================
NAME
Boolean::Verbose - return true or false with verbose message

SYNOPSIS
use Boolean::Verbose;

if(my $r = check()){
# OK, you can see why you are OK.
print $r->message;
}else{
# NG, you can see why you are NG.
print $r->message;
}

sub check{
return false('you are not 20.') unless is_age_20();
return false('you are not male') unless is_male();
return true('you are 20 and male');
}

DESCRIPTION
Boolean::Verbose returns 1 or 0 with verbose message.

EXPORT
true
true('you are right');

It returns 1, but it is object. When you use 'message' method.
You
can see 'you are right'.

false
true('you are wrong');

It returns 0, but it is object. When you use 'message' method.
You
can see 'you are wrong'.

METHOD
message
$obj->message;

You can see verbose message used as true or false argument.
===============================================================

--
Ktat
mailto: atusi@pure.ne.jp


Similar ThreadsPosted
Module naming help April 27, 2006, 10:29 am
Module naming conundrum March 9, 2006, 9:25 pm
Request for naming help (templating module) September 8, 2005, 11:34 pm
Module naming question: Tie::StorableDir January 17, 2005, 3:17 pm
Request for naming assistance for new plotting module November 18, 2004, 5:31 pm
help with module naming: filehandle-tie for size-limited/rotating logfile March 18, 2007, 5:44 am
thoughts on modules naming March 23, 2006, 6:46 am
Naming modules from the Internet Archive April 14, 2006, 10:24 pm
Naming consultation request (proposed Geo::ReadGRIB) April 25, 2006, 2:35 pm
Proposal Database::Initialize::Postgresql (naming okay?) March 17, 2007, 11:12 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap