ANNOUNCE: Readonly 1.03
From: Eric J. Roode (sdn.girths00869_at_zoemail.net)
Date: 04/21/04
- Next message: Slaven Rezic: "Re: assigning variable values in tk"
- Previous message: Tammer: "assigning variable values in tk"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 21 Apr 2004 01:20:04 GMT
ANNOUNCEMENT
Readonly.pm, v1.03 has been uploaded to PAUSE, and should be available at a
CPAN near you Real Soon Now.
DESCRIPTION
Readonly.pm provides a facility for creating non-modifiable scalars,
arrays, and hashes. This module offers several improvements over
constant.pm.
CHANGES SINCE 1.02
Damian Conway suggested a change in the prototype for the Readonly()
function, to permit the following usage:
Readonly $foo => 1;
Readonly my $bar => 2;
Readonly @foo => (3, 4, 5, 6);
Readonly my @bar => (7, 8, 9);
Readonly %foo => (ten=>10, eleven=>11);
Readonly my %bar => (twelve=>12);
This is cleaner and more obvious than the present usage, which requires
that the first parameter to Readonly() be a backslashed reference to the
variable being created. Alas, this new usage is only available for Perl
versions 5.8 and greater; earlier Perls must still use the backslash form.
LICENSE
The Readonly module is copyright by Eric J. Roode, but is freely
distributable under the same terms as Perl itself.
- Next message: Slaven Rezic: "Re: assigning variable values in tk"
- Previous message: Tammer: "assigning variable values in tk"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|