Use Cache::Memcached::Fast like hash.
A lightweight cache with timed expiration.
Stack traces are hard to read when the messages wrap, because it's hard to tell
when one message ends and the next message starts. Carp::Always::Color just
colors the first line of each stacktrace, based on whether it's a warning or an
error. If messages are being sent to a terminal, it colors them with terminal
escape codes, otherwise it colors them with HTML (ideas for more intelligent
behavior here are welcome).
Carp::Assert::More is a set of wrappers around the Carp::Assert functions
to make the habit of writing assertions even easier.
Everything in here is effectively syntactic sugar. There's no technical
reason to use
assert_isa( $foo, 'HTML::Lint' );
instead of
assert( defined $foo );
assert( ref($foo) eq 'HTML::Lint' );
other than readability and simplicity of the code.
My intent here is to make common assertions easy so that we as programmers
have no excuse to not use them.
This is a very lightweight helper module (actually just an import
method) that will automagically create a __PACKAGE__::Carp module for
you.
A chained accessor is one that always returns the object when called
with parameters (to set), and the value of the field when called with
no arguments.
This module automagically generates child classes which have accessor/mutator
methods.
This module generates accessors for your class in the same spirit as
Class::Accessor does. While the latter deals with accessors for scalar values,
this module provides accessor makers for arrays, hashes, integers, booleans,
sets and more.
As seen in the synopsis, you can chain calls to the accessor makers. Also,
because this module inherits from Class::Accessor, you can put a call to one of
its accessor makers at the end of the chain.
The accessor generators also generate documentation ready to be used with
Sub::Documentation.
This module generates accessors for your class in the same spirit as
Class::Accessor does. While the latter deals with accessors for
scalar values, this module provides accessor makers for rather
flexible constructors.
This module does two things differently to the venerable
Class::Accessor::Fast:
- Fields are stored at arms-length within a single hash value of $self, rather
than directly in the $self blessed referent.
- new() allows mixin into an existing object, rather than creating and
returning a new blessed hashref.