Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11]) by narn.NetBSD.org (Postfix) with ESMTP id 74DAF63B89E for ; Mon, 14 Jul 2008 09:19:16 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 0) id 3167863B1BB; Mon, 14 Jul 2008 09:19:16 +0000 (UTC) Received: from cvs.netbsd.org (unknown [IPv6:2001:4f8:4:7:2e0:81ff:fe25:eab4]) by mail.netbsd.org (Postfix) with ESMTP id 5CEDF63B1B9 for ; Mon, 14 Jul 2008 09:19:15 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 48AED175D0; Mon, 14 Jul 2008 09:19:15 +0000 (UTC) From: David Brownlee Subject: CVS commit: pkgsrc/devel/p5-Class-Base To: pkgsrc-changes@NetBSD.org Reply-To: abs@netbsd.org Message-Id: <20080714091915.48AED175D0@cvs.netbsd.org> Date: Mon, 14 Jul 2008 09:19:15 +0000 (UTC) Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes Precedence: list Module Name: pkgsrc Committed By: abs Date: Mon Jul 14 09:19:15 UTC 2008 Update of /cvsroot/pkgsrc/devel/p5-Class-Base In directory ivanova.netbsd.org:/tmp/cvs-serv1006 Log Message: Added devel/p5-Class-Base version 0.03 This module implements a simple base class from which other modules can be derived, thereby inheriting a number of useful methods such as new(), init(), params(), clone(), error() and debug(). For a number of years, I found myself re-writing this module for practically every Perl project of any significant size. Or rather, I would copy the module from the last project and perform a global search and replace to change the names. Each time it got a little more polished and eventually, I decided to Do The Right Thing and release it as a module in it's own right. It doesn't pretend to be an all-encompassing solution for every kind of object creation problem you might encounter. In fact, it only supports blessed hash references that are created using the popular, but by no means universal convention of calling new() with a list or reference to a hash array of named parameters. Constructor failure is indicated by returning undef and setting the $ERROR package variable in the module's class to contain a relevant message (which you can also fetch by calling error() as a class method). Status: Vendor Tag: TNF Release Tags: pkgsrc-base N pkgsrc/devel/p5-Class-Base/DESCR N pkgsrc/devel/p5-Class-Base/Makefile N pkgsrc/devel/p5-Class-Base/distinfo No conflicts created by this import