ANNOUNCE: Readonly 1.03

From: Eric J. Roode (sdn.girths00869_at_zoemail.net)
Date: 04/21/04


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.



Relevant Pages

  • RE: I need help here
    ... Here's the Big Secret about Perl variables that most people learn ... use strict; ... : $outputfile = shift; ... You will often see a usage message in a script which deals ...
    (perl.beginners)
  • Re: PERL to mean what perldoc perl says is wrong?
    ... Perl experts. ... The correct usage and the rationale behind it are found ... Except from other cranks and novices, of course, ...
    (comp.lang.perl.misc)
  • F: WMI Names
    ... Memory Usage,CPU Usage, CPU-Time,Memory,Virt.Mem,I/O Total, ... Ich verwende aber kein VC sondern Perl dazu. ... Hier die Liste der WMI Namen die ich zur Verfügung habe: ... QuotaPeakNonPagedPoolUsage ...
    (microsoft.public.de.vc)
  • RE: I need help here
    ... To: 'Perl Beginners' ... use strict; ... : $outputfile = shift; ... You will often see a usage message in a script which deals ...
    (perl.beginners)
  • Re: RFC on script // GetOptions problems
    ... > meant to ridicule you or condemn your script. ... My main problem now is that if i have a long inFile "sub findVars " ... die usage() if $needHelp; ... > This is perl. ...
    (perl.beginners)