Ask a Question related to PERL Modules, Design and Development.
-
Kevin Michael Vail #1
[ANN] Perl6::Binding 0.0601 Uploaded to CPAN
Version 0.0601 corrects a problem whereby the dependencies in
Makefile.PL didn't get carried over when I switched from using RCS to
using CVS. Duh.
This module creates lexical aliases to items that can be either lexical
or dynamic. For example, after this statement:
my $foo := $array[2];
both $foo and $array[2] refer to the same value. If you take references
to both items, you'll discover that \$foo eq \$array[2]. Changing
either of them changes the other.
You can also alias entire arrays or hashes:
my @bar := @$arrayref;
my %baz := %{$hoh{'element1'}->{'subelement'}};
You can also alias the contents of an array or a hash, or an array or
hash slice.
my ($foo, @bar, %baz) := *@array;
In the above, $array[1] must be an array reference, and $array[2] must
be a hash reference.
When aliasing the contents of a hash, the names of the aliased
variables determine the hash members that are aliased. The following
two statements have identical effects.
my ($foo, @bar, %baz) := *%hash;
my ($foo, @bar, %baz) := @hash{qw/foo bar baz/};
This version is still an alpha version, released so that I can get some
feedback
on bugs and on the general functionality of the module.
Version 0.02 fixed some minor problems.
Version 0.03 gets the prerequisites right in Makefile.PL.
Version 0.04 corrects a number of bugs, and updates the prerequisite
for PadWalker to 0.09.
Version 0.05 checks to see if a hash element exists before attempting
to create an alias for it, and modifies the tests to skip several of them
due to a problem in PadWalker with Perl 5.8.x.
Version 0.06 fixes a long-standing problem with bindings in recursive
subroutines. Basically, the underlying XS code was always binding the
variable in the first call, not the one at the current stack level.
INSTALLATION
To install this module type the following:
perl Makefile.PL
make
make test
make install
DEPENDENCIES
This module requires these other modules and libraries:
Filter::Util::Call
Text::Balanced
PadWalker
COPYRIGHT AND LICENCE
Copyright 2003-2004 Kevin Michael Vail
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
--
Found Poetry (_Science News_, 14-Jun-2003): oldest _homo sapiens_ find
+-----------------------------------------+ ocean eddies' far-flung effects;
| Kevin Michael Vail <kevin@vaildc.net> | superior threads spun
+-----------------------------------------+ the pox from prairie dogs.
Kevin Michael Vail Guest
-
ANNOUNCE: Perl6-Say-0.06
I have been designated co-maintainer of Perl6-Say by Damian Conway and have released version 0.06 to CPAN. You may obtain it at... -
Transition of CPAN to Perl6 ?
Greetings. What's intended to happene to all the Perl5 CPAN modules ? Will there be big push for authors to translate their stuff into Perl6 ? Can... -
Upgrading to CPAN.pm v1.76 install Bundle::CPAN fails
FYI Have problem Upgrading perl packages from CPAN.pm version v1.61 to version v1.76) failed with final error messages: <stuff snipped> CPAN.pm:... -
ANNOUNCE: New module Sys::PortIO 0.1 uploaded to CPAN
Hello, I've uploaded a new module Sys::PortIO 0.1 to CPAN. This module provides Perl access via XS glue to the OS-dependent routines necessary... -
Problem with 'cc' command in CPAN makes (i.e., Bundle::CPAN)
I'm using the CPAN module to build my modules and have hung up just trying install Bundle::CPAN. Installing Data::Dumper, for example, shows a 'cc:...



Reply With Quote

