2 results (0.333 seconds)
Return::DataButBool - Return a boolean value that also has arbitrary numeric and string values ++

Perl's Zero-But-True ( 0e0 ) is a most handy tool (See String::ZeroButTrue). This module expands on that idea by having a return value that has different boolean, numeric, and string values. For example you could return a count of files processed (sa...

DMUEY/Return-DataButBool-0.0.3 - 09 Jan 2009 04:02:38 GMT - Search in distribution

String::ZeroButTrue - utils for consistent zero-but-true usage ++

Zero-but-true is cool. There are some nuances that are easy to overlook though. For example, the ever common "dyslexia" that ends up E0E instead of 0E0, the 'bareword instead of string' use that changes its behavior, the numeric check (e.g. $string &...

DMUEY/String-ZeroButTrue-0.2 - 09 Jan 2009 16:05:06 GMT - Search in distribution

Hosting generously
sponsored by Bytemark