ANNOUNCE: Attribute::Default 1.14 
Author Message
 ANNOUNCE: Attribute::Default 1.14

Attribute::Default version 1.14 has been released.

This version of Attribute::Default adds support for using the 'method'
function attribute to process defaults appropriately for methods.

From the README:


You've probably seen it a thousand times: a subroutine begins with a
complex series of "defined($blah) or $blah = 'fribble'" statements
designed to provide reasonable default values for optional
parameters. They work fine, but every once in a while one wishes that
perl 5 had a simple mechanism to provide default values to

This module attempts to fill that gap. It allows you to declare your
subroutines with an attribute which you can use to specify whatever
default values your subroutine should have, and automatically fills
them in if they are undefined or not provided. It works on simple
scalar arguments, list arguments, references, and hash-style named

This is an alpha module. Comments welcomed.


Attribute::Default is available from CPAN:

Sat, 30 Oct 2004 11:33:52 GMT  
 [ 1 post ] 

 Relevant Pages 

1. ANNOUNCE: Attribute::Protected, Attribute::Profiled, Attribute::Unimplemented

2. [Fwd: Re: GD 1.14 install problems]

3. GD 1.14 install problems

4. Source: version 1.14

5. Problem with IO 1.14

6. FAQ 1.14 What is a JAPH?

7. FAQ 1.14 What is a JAPH?

8. FAQ 1.14 What is a JAPH?

9. FAQ 1.14 What is a JAPH?

10. FAQ 1.14 What is a JAPH?

11. FAQ 1.14 What is a JAPH?

12. FAQ 1.14 What is a JAPH?


Powered by phpBB® Forum Software