27 Aug 2008 21:16:08 UTC
- Distribution: KinoSearch
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (5)
- Testers (106 / 44 / 13)
- KwaliteeBus factor: 0
- License: perl_5
- Activity24 month
- Download (226.15KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionCREAMYG Marvin Humphreyand 1 contributors
- Marvin Humphrey <marvin at rectangular dot com>
KinoSearch::Util::ToolSet - namespace pollution
This is a private class and the interface may change radically and without warning. Do not use it on its own.
KinoSearch::Util::ToolSet makes a slew of commonly needed symbols available to other modules in the KinoSearch suite. At one time it was implemented using David Golden's ToolSet module, but in keeping with the philosophy of minimizing non-core dependencies, a 90% solution based on Exporter has been substituted.
... is effectively an alias for...
use bytes; no bytes; use Carp qw( carp croak cluck confess ); use Scalar::Util qw( refaddr blessed dualvar isweak refaddr reftype tainted weaken isvstring looks_like_number ); use KinoSearch qw( K_DEBUG kdump ); use KinoSearch::Util::VerifyArgs qw( verify_args a_isa_b ); use KinoSearch::Util::MathUtils qw( ceil );
Two issues deserve special attention.
use bytes; no bytes;combo ensures that subroutines within the bytes:: namespace, such as bytes::length, will be available, while still keeping character semantics enabled by default -- so regexes work as expected, etc.
use KinoSearchline does a LOT more than it appears to at first glance -- it loads ALL of the XS routines in the entire KinoSearch suite. See KinoSearch::Docs::DevGuide for an explanation.
Copyright 2005-2007 Marvin Humphrey
See KinoSearch version 0.163.